Page MenuHomePhabricator

fix: allow fixing untracked files when given as arguments
ClosedPublic

Authored by hooper on Mar 21 2019, 10:56 PM.

Details

Summary

It's more useful to fix the file than to silently avoid it when the user does
this:

hg fix --working-dir untracked-file

We will still do nothing to ignored files, even if they are specified. This may
be safer, given that such files can unexpectedly slip into the arguments via a
shell glob or fileset.

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

hooper created this revision.Mar 21 2019, 10:56 PM
This revision was automatically updated to reflect the committed changes.