Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Extracting a subdirectory of repository A to a different repository B using mercurial

I want to move a part, i.e. one subdirectory of an existing, private mercurial repository to a new, public repository on bitbucket. Is it possible to do this including the changesets or do I have to manually copy the directory to the new repository and commit it there (and lose the version history on the way)?

like image 255
c089 Avatar asked Mar 09 '10 10:03

c089


1 Answers

you want to use the convert extension to do this. it may be worth while reorganising your main repo to make this a subrepo while you are at it.

like image 63
jk. Avatar answered Sep 25 '22 08:09

jk.