git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: mercurial to git

From
Theodore Tso <tytso@mit.edu>
Date
Mar 15, 2007, 14:12 UTC
Message-ID
<20070315141227.GA18416@thunk.org>
In-Reply-To
<20070315101913.GA9831@peter.daprodeges.fqdn.th-h.de>
On Thu, Mar 15, 2007 at 10:19:13AM +0000, Rocco Rutte wrote:
Show 5 quoted lines
> I failed to send a response to the list and it went Theodore privately 
> only, sorry. I merged hg2git into fast-export.git at repo.or.cz and 
> named it 'hg-fast-export' to match with the other importers there. It 
> now can parse Signed-off-by lines and supports author maps (as 
> git-cvsimport and git-svnimport do, same syntax).

BTW, there are a number of places where the old name (hg2git) is still being used for filenames, et.al, because $PFX is still being set to hg2git.

> For which changesets exactly? The script only attempts to write out the 
> 'author' command if -s (for parsing signed-off-by) is given. But for 
> both commands the time information written out are identical and are 
> exactly what hg gives us. So the bug must be elsewhere.
All of them.  :-)

Upon doing more investigation, the failure case seems to be if -A is specified but NOT -s. Comare:

(Generated using: hg-fast-export.sh -A ../e2fsprogs.authors -r ../e2fsprogs)
commit b584b9c57ecbbeef91970ca2924d66662029ab29
Author: Theodore Ts'o <tytso@mit.edu>
Date:   Thu Jan 1 00:00:00 1970 +0000  <=============
with
(Generated using: hg-fast-export.sh -s -A ../e2fsprogs.authors -r ../e2fsprogs)
commit 9e9a5867e4d4985bde6d6be072efb96e901e08cc
Author: Theodore Ts'o <tytso@mit.edu>
Date:   Wed Mar 7 08:09:10 2007 -0500  <=============
The date seems to be correctly generated using
	hg-fast-export.sh -s -A ../e2fsprogs.authors -r ../e2fsprogs
	hg-fast-export.sh -s -r ../e2fsprogs
	hg-fast-export.sh -r ../e2fsprogs
It seems to be this combination of options:
	hg-fast-export.sh -A ../e2fsprogs.authors -r ../e2fsprogs
Where all of the dates end up being Jan 1, 1970.
Regards,
						- Ted
Previous: Rocco RutteNext: Rocco Rutte
Message 13 of 19 in “mercurial to git”
  1. Rocco RutteMar 6, 2007
  2. Theodore TsoMar 6, 2007
  3. Rocco RutteMar 6, 2007
  4. Josef SipekMar 6, 2007
  5. Theodore TsoMar 7, 2007
  6. Rocco RutteMar 8, 2007
  7. Shawn O. PearceMar 7, 2007
  8. Rocco RutteMar 8, 2007
  9. Shawn O. PearceMar 7, 2007
  10. Rocco RutteMar 8, 2007
  11. Theodore TsoMar 15, 2007
  12. Rocco RutteMar 15, 2007
  13. Theodore TsoMar 15, 2007
  14. Rocco RutteMar 15, 2007
  15. Linus TorvaldsMar 15, 2007
  16. Theodore TsoMar 15, 2007
  17. Rocco RutteMar 15, 2007
  18. Simon 'corecode' SchubertMar 17, 2007
  19. Len BrownMar 16, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.