Bug ID: 5650
Summary: Ability to use timestamp from GIT_AUTHOR_DATE
CC: duri...@gmail.com, firstname.lastname@example.org
I'm trying to convert a repository from git to hg with
hg convert git-repo hg-repo
Git stores two different timestamps:
(maybe the name of the variables is not 100% exact).
The problem is that I ran some repo modifications (some rebasing etc.) before
doing the conversion, so GIT_COMMIT_DATE has been changed to the time when I
did those modifications, while GIT_AUTHOR_DATE remains the same.
The conversion then used GIT_COMMIT_DATE (but GIT_AUTHOR_NAME!!!) as the source
of the data which is completely useless for me.
My workaround was eventually to run
git rebase --committer-date-is-author-date <sha>
to modify the timestamps (luckily I have a linear history; I could probably
modify the timestamps in another way, but ...)
I would say that GIT_AUTHOR_DATE would make more sense in the conversion
anyway, but if you feel that GIT_COMMITTER_DATE is more useful as default, I
would like to request at least an option to fix that during conversion without
having to do acrobatics with git history first.
You are receiving this mail because:
You are on the CC list for the bug.
Mercurial-devel mailing list