( )⚙ D6165 fix: allow fixing untracked files when given as arguments

This is an archive of the discontinued Mercurial Phabricator instance.

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
Lint Skipped
Unit
Unit Tests Skipped

Event Timeline

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