[Bug 6908] New: hg import on git format-patch bundle resets authorship date

mercurial-bugs at mercurial-scm.org mercurial-bugs at mercurial-scm.org
Sat Aug 24 13:17:21 UTC 2024


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

            Bug ID: 6908
           Summary: hg import on git format-patch bundle resets authorship
                    date
           Product: Mercurial
           Version: 6.7.4
          Hardware: PC
                OS: NetBSD
            Status: UNCONFIRMED
          Severity: bug
          Priority: wish
         Component: Mercurial
          Assignee: bugzilla at mercurial-scm.org
          Reporter: mercurial-bugzilla at campbell.mumble.net
                CC: mercurial-devel at mercurial-scm.org
    Python Version: ---

What I did: I made a patch series from a git repository with:

git format-patch --stdout 0123abcd~~..0123abcd >/tmp/patch

And I applied it on an hg repository (one is a mirror of the other, so the
content is the same):

hg import /tmp/patch

Actual outcome: hg successfully created changesets corresponding to each patch
in the series, but it set the date on each changeset to the time I ran `hg
import'.

Expected result: hg creates changesets with dates taken from the `Date:' header
fields in the git patch series.

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


More information about the Mercurial-devel mailing list