user277465
user277465

Reputation:

Checkout an SVN repo and export to another server

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

Answers (1)

Lazy Badger
Lazy Badger

Reputation: 97282

  1. 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-information
  2. svn-sync is really more natural way

But, 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

  1. Hack-hack-hack code
  2. svn ci -m "message"
  3. svn relocate MIRROR
  4. svn ci -m "message"
  5. svn relocate SRC
  6. See p.1

Upvotes: 2

Related Questions