Reputation:
I'm trying to checkout an SVN repo and push it onto another remote repo while trying to maintain all the commit history.
Is doing the following the right way to go about it?
Make code changes, add new files, commit :-
However, im concerned that the commit would take place in url
and not new-url
. In order to make commits at new-url
would I have to checkout the repo at new-url
again and then commit?
Is this the right way to go about doing this?
Upvotes: 2
Views: 327
Reputation: 97282
svn export
creates unversioned copy of your Workin Copy, i.e: it can't be commited to anywhere, it doesn't containt any (needed) meta-informationBut, if you really want to support mirror-repository by hand (I still recommend create mirror from data-dump of original), starting from some-rev, you can do it (hereinafter SRC and MIRROR are shorthands for "original" repo and "clone").
Starting point: you have SRC@SOME-REV, MIRROR@SOME-REV and Working Copy of SRC
Workflow
svn ci -m "message"
svn relocate MIRROR
svn ci -m "message"
svn relocate SRC
Upvotes: 2