Converting "home-made" revision control into Mercurial

Giuseppe Bilotta bilotta78 at hotpop.com
Thu May 4 16:16:25 CDT 2006


I've set up my favourite editor to save the backup version of the file
I'm editing by appending the previous ctime in yyyymmdd to the name.
This allows me to have a quick&dirty provisional revision control.

While this is quite good for minor stuff, more complex situations
(e.g. a whole project) would benefit from the use of a real RCS. Since
I've already used Mercurial for some projects, I was thinking about
converting these projects, possibly keeping as much of the history as
possible.

So the idea is this: I have a directory with a bunch of files in the
following form:

file1
file1.date1
file1.date2
file1.date3
file2
file2.date2
file2.date5
file3
file3.date3
file3.date4
file3.date5

and I would like to create an hg repo where the commits are at the
various dates found in the suffixes (all in the form yyyymmdd).

How hard would it be to make such a conversion?

Would it be any harder if there are also

file1~
file2~
file3~

to be inserted in the history at their ctime?

Thanks in advance for the attention,

-- 
Giuseppe "Oblomov" Bilotta

"Da grande lotterò per la pace"
"A me me la compra il mio babbo"
(Altan)
("When I grow up, I will fight for peace"
 "I'll have my daddy buy it for me")



More information about the Mercurial mailing list