[Bug 4639] New: diff.noprefix honored by export, round trip to import does work

mercurial-bugs at selenic.com mercurial-bugs at selenic.com
Sat May 2 16:54:15 UTC 2015


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

          Priority: normal
            Bug ID: 4639
                CC: mercurial-devel at selenic.com
          Assignee: bugzilla at selenic.com
           Summary: diff.noprefix honored by export, round trip to import
                    does work
          Severity: bug
    Classification: Unclassified
                OS: All
          Reporter: gregory.szorc at gmail.com
          Hardware: All
            Status: UNCONFIRMED
           Version: 3.4
         Component: Mercurial
           Product: Mercurial

diff.noprefix is honored by `hg export`. However, sending this output to `hg
import` doesn't work, as import will strip the first path component and almost
certainly fail due to failure to find the file or inability to apply a diff on
the wrong file.

This could be a bug in export honoring diff.noprefix or a bug in import not
honoring it. I could also see it not being a bug, as export's format is
configurable. However, as an end user, I expect a file produced with `hg
export` to `hg import` cleanly, at least when run on the same machine with the
same Mercurial configuration.

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


More information about the Mercurial-devel mailing list