Changeset 22b0ad8f0907…
Parent 3422d292d9e8…
by <sonny@fogcreek.com>
Changes to one file · Browse files at 22b0ad8f0907 Showing diff from parent 3422d292d9e8 Diff from another changeset...
@@ -6,7 +6,8 @@ #
# The script should be run on a machine which has sufficient disk space to clone copies of ALL of the
# repositories from the old kiln server. This means it also requires that Mercurial be installed in order to run.
-
+#
+# Beware: Branches will not migrate properly if the parent repo has been changed since the original point of the branch!
@@ -143,6 +144,12 @@ # If we don't find an existing repo, then create a new repo with the information we grabbed from the old server
if (not dest_repo):
if (src_repo['ixParent']):
+ # By setting the ixParent field, when Repo/Create is called, it will create a new branch from the ixParent Repo.
+ # This means, that the point at which the src repo branched off from the parent can and most likely will be different from the
+ # point at which the dest repo gets branched. (One option I know of to fix this, after the fact, is to strip changesets in
+ # the dest repo back to the point where the branch was created in the src repo. Then push the src repo to the dest repo and
+ # the src and dest branches should be back in sync.
+ debug_print(" !!! Warning: Branches may not migrate properly !!!")
data = urllib.urlencode({'token': destinationToken,
'sName': src_repo['sName'],
'sDescription': src_repo['sDescription'],
|
Loading...