https://bz.mercurial-scm.org/show_bug.cgi?id=5789

            Bug ID: 5789
           Summary: interactive revert passes on nonexistant file patterns
           Product: Mercurial
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: UNCONFIRMED
          Severity: feature
          Priority: wish
         Component: Mercurial
          Assignee: bugzi...@mercurial-scm.org
          Reporter: de...@laxalde.org
                CC: mercurial-devel@mercurial-scm.org

When passed a file pattern that does not match any file in the repository, "hg
revert -i" just warns about it but then continues and asks about other modified
files. This is different from the non-interactive case. I believe the command
should just abort if none of specified file patterns exist (in which case, the
user quite just likely made a typo). 

Step to reproduce:

  $ hg files
  a
  $ hg status
  A a
  $ hg rev b
  b: no such file in rev 000000000000
  $ hg rev -i b
  b: no such file in rev 000000000000
  diff --git a/a b/a
  new file mode 100644
  examine changes to 'a'? [Ynesfdaq?]

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel

Reply via email to