If interactively reverting from a commit with hg revert -i -r, we
would unconditionally add files from that commit that are not already
tracked in the working copy. We have prompts for adding back files
removed in the working copy, but that's specific to such files and
does not apply to adding files from another revision.
Details
Details
- Reviewers
Alphare - Group Reviewers
hg-reviewers - Commits
- rHG3f6ef67e7a60: revert: ask user to confirm before tracking new file when interactive
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
tests/test-revert-interactive.t | ||
---|---|---|
424 | I'll amend this to hg up 0 as per our previous discussion about this particular shortcut. (I know this is very subjective so I won't bother you with a round-trip :) ) |
tests/test-revert-interactive.t | ||
---|---|---|
424 | Sounds good. I'm just so used to using hg co that I didn't think about it (I didn't intentionally ignore your previous request). |
I'll amend this to hg up 0 as per our previous discussion about this particular shortcut. (I know this is very subjective so I won't bother you with a round-trip :) )