See the previous patch for the reason.
Details
Details
- Reviewers
ryanmce - Group Reviewers
hg-reviewers - Commits
- rHGbb6544b1c56e: largefiles: do not use platform.system()
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
Event Timeline
hgext/largefiles/lfutil.py | ||
---|---|---|
82 | why is this not a pycompat.osname check? It doesn't make sense to abort below with pycompat.osname if that might still be posix. To be clear, your patch isn't making this worse, but it's exposing something sketchy. Either we need the Abort below to include the sysplatform in its output or we need this check to be against pycombat.osname. I suspect we want to change the abort below, in a separate patch. |
hgext/largefiles/lfutil.py | ||
---|---|---|
82 | pycompat.osname returns posix on OS X. |
why is this not a pycompat.osname check? It doesn't make sense to abort below with pycompat.osname if that might still be posix.
To be clear, your patch isn't making this worse, but it's exposing something sketchy. Either we need the Abort below to include the sysplatform in its output or we need this check to be against pycombat.osname.
I suspect we want to change the abort below, in a separate patch.