[Bug 5548] New: hg purge should behave like rm, prompt by default
mercurial-bugs at mercurial-scm.org
mercurial-bugs at mercurial-scm.org
Wed Apr 26 14:45:51 UTC 2017
https://bz.mercurial-scm.org/show_bug.cgi?id=5548
Bug ID: 5548
Summary: hg purge should behave like rm, prompt by default
Product: Mercurial
Version: unspecified
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: feature
Priority: wish
Component: purge
Assignee: bugzilla at mercurial-scm.org
Reporter: sid0 at fb.com
CC: mercurial-devel at mercurial-scm.org
I recently almost lost a day's worth of work with hg purge. Luckily I had an
emacs buffer with the file in it, but I think 'hg purge' should behave somewhat
like 'rm' and be a little less dangerous.
'hg purge' with no arguments in an interactive terminal should prompt before
deleting.
'hg purge' with file arguments, -I or -X flags should probably not prompt.
'hg purge' in a non-interactive terminal shouldn't prompt.
I haven't thought about BC constraints.
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Mercurial-devel
mailing list