How to organize a 'central repository'

Brian Wallis brian.wallis at infomedix.com.au
Wed Apr 2 04:50:11 UTC 2008


On 02/04/2008, at 1:34 AM, Ishee, David M wrote:
> How did you check the resulting Hg repositories to convince yourself
> that they were "OK"?

So far I have just checked that the tips of the head and two branches  
are identical (apart from missing empty directories and CVS  
directories). I will also be doing some tests between CVS and Hg at a  
handful of dates. Obviously I cannot check tag points since the tags  
don't (and in our case just cannot) come across to mercurial.

Even if I find some differences at points in the past I don't think  
it will be a great cause for concern. We could do our migration just  
by checking out the latest from CVS (for head and each branch) and  
starting our mercurial repository from there. It is convenient to  
have some history but not essential since CVS will always be there  
for reference.

> Also, what were you looking for in the rlog output to find the correct
> date of a branch? (I've recently started tagging branch points in CVS
> because Eclipse likes to use them to do merges). Some of my branches
> will have tags, but the older ones won't.

Tagged branch points are nice, but of course a tag doesn't have a  
date stored with it and may have been moved (yes, I know, you  
shouldn't do that...)

I'm using the attached perl script to analyze the output. It lists  
all the tags and branches found and lists the earliest and latest  
associated timestamps.

For a branch the times are the earliest and latest time that the  
first change was committed to the branch.

For a tag the times are the earliest and latest commit time of all  
the files tagged with that tag.

I think these figures get you as close as you can to the time the  
branch was created. If you have a pre branch tag you can use its  
latest time which is the commit time of the last file committed  
before the branch was created. If you don't you can use the earliest  
time of the branch which is the time the first change was committed  
to the branch.

Hope this helps!


-------------- next part --------------
A non-text attachment was scrubbed...
Name: rlog-tags.pl
Type: text/x-perl-script
Size: 1534 bytes
Desc: not available
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20080402/4d8a1929/attachment-0003.bin>
-------------- next part --------------


Brian Wallis
InfoMedix
p: 3 8615 4553 | f: 3 8615 4501 | e: brian.wallis at infomedix.com.au
Level 5, 451 Little Bourke Street, Melbourne VIC 3000





More information about the Mercurial mailing list