Moving file between repositories?

Benoît Allard benoit at aeteurope.nl
Wed Jul 2 06:37:54 CDT 2008


Joseph Turian wrote:
> I have a file in one repository. I would like to move it to another
> repository and preserve revision history.
> How do I do that?
> I know this is not standard.

With the convert extension in its flavor hg -> hg, and a nice filter on 
the right file (have a look at `filemap`) you can create a repository 
containing only your file.

Then pull/push using the -f flag to work on unrelated repositories will 
combine them. The merge should be trivial.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 4197 bytes
Desc: S/MIME Cryptographic Signature
Url : http://selenic.com/pipermail/mercurial/attachments/20080702/cb1e1f0c/attachment.bin 


More information about the Mercurial mailing list