[Bug 4320] New: hg add command adds the wrong file

mercurial-bugs at selenic.com mercurial-bugs at selenic.com
Fri Aug 1 11:23:10 CDT 2014


http://bz.selenic.com/show_bug.cgi?id=4320

          Priority: normal
            Bug ID: 4320
                CC: mercurial-devel at selenic.com
          Assignee: bugzilla at selenic.com
           Summary: hg add command adds the wrong file
          Severity: bug
    Classification: Unclassified
                OS: Windows
          Reporter: zhuchengan at hotmail.com
          Hardware: PC
            Status: UNCONFIRMED
           Version: 3.0.2
         Component: Mercurial
           Product: Mercurial

Created attachment 1783
  --> http://bz.selenic.com/attachment.cgi?id=1783&action=edit
Screenshot that shows the command hg add problem

This bug only occurs with the following repo setting :

- one simple repo with two untracked files named foo1.txt and foo[1].txt
REPO
  |___foo1.txt
  |___foo[1].txt

The command | hg add "foo[1].txt" | adds the WRONG file foo1.txt.
Please see the attached screenshot.

Also this bug DOESN'T occur with the following repo setting :

- one simple repo with two untracked files named foo2.txt and foo[1].txt
REPO
  |___foo2.txt
  |___foo[1].txt

The command | hg add "foo[1].txt" | adds the GOOD file foo[1].txt.

My environment description:
Windows seven SP1 french
Mercurial 3.0.2

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Mercurial-devel mailing list