[Bug 5942] New: hg mv works differently on largefiles than normal files

mercurial-bugs at mercurial-scm.org mercurial-bugs at mercurial-scm.org
Fri Jul 20 14:06:48 UTC 2018


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

            Bug ID: 5942
           Summary: hg mv works differently on largefiles than normal
                    files
           Product: Mercurial
           Version: 4.6
          Hardware: PC
                OS: All
            Status: UNCONFIRMED
          Severity: bug
          Priority: wish
         Component: largefiles
          Assignee: bugzilla at mercurial-scm.org
          Reporter: jjfoerch at gmail.com
                CC: mercurial-devel at mercurial-scm.org, natosha at gmail.com

Hg mv treats largefiles differently than normal files when renaming a directory
that contains largefiles.  It adds an extra level of directory structure to the
resulting tree.

    ~/temp$ mkdir largefilestest
    ~/temp$ cd largefilestest
    ~/temp/largefilestest$ hg init
    ~/temp/largefilestest$ mkdir a
    ~/temp/largefilestest$ echo hello > a/normal.txt
    ~/temp/largefilestest$ echo hello > a/largefile.txt
    ~/temp/largefilestest$ hg add a/normal.txt
    ~/temp/largefilestest$ hg add --large a/largefile.txt
    ~/temp/largefilestest$ hg commit -m 'initial commit'
    ~/temp/largefilestest$ hg mv a b
    moving a/normal.txt to b/normal.txt
    moving .hglf/a/largefile.txt to .hglf/b/a/largefile.txt
    ~/temp/largefilestest$ find -not -path './.hg/*' -not -path './.hglf/*'
    .
    ./.hglf
    ./b
    ./b/a
    ./b/a/largefile.txt
    ./b/normal.txt
    ./.hg

Expected result: largefile.txt should be moved to b/largefile.txt just as
normal.txt was moved to b/normal.txt.

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


More information about the Mercurial-devel mailing list