Any clever methoy to keep third party's source in subdirectory?

Daniel(原志) dlin.tw at gmail.com
Fri Jun 27 21:15:13 CDT 2008


I have a directory like:

myprj/Makefile   # my make file to all
myprj/src           # my source
myprj/lib1       # third party, from http://svn1/subdir1
myprj/lib2       # third party, from http://hg/subdir2

I want to keep:
myprj/Makefile   # my make file to all
myprj/src           # my source
myprj/lib1       #  only keep version number and subdir and repo type svn
myprj/lib2       #  only keep version number and subdir and repo type hg

How could I do this in clever way?
Here is my method

In myprj/.hgingore, just ignore the lib1/, lib2/
use svn to checkout to lib1.
use hg to checkout http://hg/ to other directory eg. ~/tmp_hg
and make a symbolic link
ln -s ~/tmp_hg/subdir2 myprj/lib2

But in this way, I should keep a document on myprj/README.txt,
which describe what version I check out on lib1, lib2.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://selenic.com/pipermail/mercurial/attachments/20080628/4f93e7eb/attachment.htm 


More information about the Mercurial mailing list