[Bug 4760] New: import does not take case change into account

mercurial-bugs at selenic.com mercurial-bugs at selenic.com
Fri Jul 24 05:31:05 CDT 2015


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

          Priority: normal
            Bug ID: 4760
                CC: mercurial-devel at selenic.com
          Assignee: bugzilla at selenic.com
           Summary: import does not take case change into account
          Severity: bug
    Classification: Unclassified
                OS: Windows
          Reporter: mercurial at tannerlab.com
          Hardware: PC
            Status: UNCONFIRMED
           Version: stable branch
         Component: Mercurial
           Product: Mercurial

The following script (hg version 3.4.2, cygwin, Windows 7, NTFS) reproduces the
bug:

hg init
touch aba
hg add aba
hg commit -m init
hg mv aba AbA
ls
hg commit -m renamed
hg diff -g -r 0:1 > ren.diff
cat ren.diff
hg checkout 0
ls
hg import -m import ren.diff
ls
hg status
hg diff -g -r 0:2
hg checkout 0
ls

correct, expected output (on Linux):

AbA
diff --git a/aba b/AbA
rename from aba
rename to AbA
1 files updated, 0 files merged, 1 files removed, 0 files unresolved
aba  ren.diff
applying ren.diff
AbA  ren.diff
? ren.diff
diff --git a/aba b/AbA
rename from aba
rename to AbA
1 files updated, 0 files merged, 1 files removed, 0 files unresolved
aba  ren.diff

incorrect output on Windows:

AbA
diff --git a/aba b/AbA
rename from aba
rename to AbA
1 files updated, 0 files merged, 1 files removed, 0 files unresolved
aba  ren.diff
applying ren.diff
AbA  ren.diff
! aba
? ren.diff
diff --git a/aba b/AbA
copy from aba
copy to AbA
0 files updated, 0 files merged, 1 files removed, 0 files unresolved
ren.diff

hg import does not detect the case change and does not delete the old file aba

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


More information about the Mercurial-devel mailing list