tracking third-party sources
Pierre Asselin
pa at panix.com
Sun Jan 4 00:48:02 UTC 2009
I'm looking for a mercurial equivalent to "cvs import".
Based in part on the wiki I came up with this.
Create the repository normally ...
hg init foo-incoming
... and perform all code drops as follows:
tar xjvf foo-x.y.tar.bz2
cd foo-x.y
ln -s ../foo-incoming/.hg . # clever !
hg addremove --similarity 70
hg commit -m foo-x.y
Questions:
1) Am I being *too* clever ?
2) Is the behavior worth supporting officially, e.g.
hg addremove -s 70 -R ../foo-incoming
(doesn't work as of hg 1.0.2 but the symlink does.)
--
pa at panix dot com
More information about the Mercurial
mailing list