dates in hg export

Matt Mackall mpm at selenic.com
Tue Jun 15 21:52:48 CDT 2010


On Wed, 2010-06-16 at 02:24 +0200, Jason Harris wrote:
> Hi All,
> 
> I have the following issue: hg export exports something with a header like:

Yes, it should work. In fact, I've considered changing the date field
here to be human-readable. I can't reproduce this with the following two
csets on an empty repo:

# HG changeset patch
# User Matt Mackall <mpm at selenic.com>
# Date 1276094100 -7200
# Node ID cd3a675405a77240a56007f99aac767498b1f6d2
# Parent  0000000000000000000000000000000000000000
0

diff -r 000000000000 -r cd3a675405a7 a
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/a	Wed Jun 09 16:35:00 2010 +0200
@@ -0,0 +1,1 @@
+foo


# HG changeset patch
# User Matt Mackall <mpm at selenic.com>
# Date 2010-06-09 16:35 +0200
# Node ID cd3a675405a77240a56007f99aac767498b1f6d2
# Parent  0000000000000000000000000000000000000000
0

diff -r 000000000000 -r cd3a675405a7 a
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/a	Wed Jun 09 16:35:00 2010 +0200
@@ -0,0 +1,1 @@
+foo

If I poke at the revlog's raw data, I see:

$ hg debugdata .hg/store/00changelog.i 0
0ed6317e908e188a6127a8b528d28b342cfd8647
Matt Mackall <mpm at selenic.com>
1276094100 -7200
a

Try doing a non-exact import and comparing the raw changelog data as above. 
I suspect you're seeing something slightly different.

-- 
Mathematics is the supreme nostalgia of our time.




More information about the Mercurial-devel mailing list