Python script to convert from tla to mercurial with full history
David MENTRE
dmentre at linux-france.org
Tue May 9 04:16:39 CDT 2006
Hello,
I updated Samuel Tardieu, Ollivier Robert and Thomas Waldmann Python
script that converts a tla repository into a mercurial one. The main
changes are:
- import full history, even accross branches;
- modify creation of .hgignore with regexp to avoid import of {arch}
directory (the glob approach does not seem to work on my config (tla
1.3, hg 0.8.1)).
Script can be found at:
http://www.linux-france.org/~dmentre/misc/tla-to-hg-hist.py
To get the full tla history, I use tla's "ancestry-graph" command. I'm
not sure of its output (no documentation for this command) so there
might be an issue there.
I tested on my own tla repository with tla 1.3 and mercurial 0.8.1 (399
revisions accross 4 or 5 branches) and it seems to work
correctly. However, I have a fairly simple way of working (no multiple
merges between branches) so it might make things simpler.
Many thanks to the original author of the script, it does a quite good
job (I particularly like the import of initial commit date).
Best wishes,
d.
PS: For demexp-dev@ readers, I have used following command:
./tla-to-hg-hist.py demexp--dev--0.7 demexp-hg
--
pub 1024D/A3AD7A2A 2004-10-03 David MENTRE <dmentre at linux-france.org>
5996 CC46 4612 9CA4 3562 D7AC 6C67 9E96 A3AD 7A2A
More information about the Mercurial
mailing list