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)?
Asked
Active
Viewed 1,166 times
7
-
+1. Good point. I would just advise you to change the title of the question. You don't really want a partial push (that sounds like a selective commit). You want to "extract" a sub-repository in Mercurial (or something like that...). – Roberto Aloi Mar 09 '10 at 10:49
-
if you want to do selective commits then you definitely want to make it a subrepo as well – jk. Mar 09 '10 at 11:36
1 Answers
9
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.

jk.
- 13,817
- 5
- 37
- 50
-
See also : http://stackoverflow.com/questions/6843479/create-a-new-repo-from-sub-folder-in-mercurial-repo-using-convert – yanjost Apr 03 '13 at 16:51