Kiln » KilnSupportScripts Powershell Scripts to help monitor a Kiln environment. Contact Fog Creek support before using.
Clone URL:  
Pushed to one repository · View In Graph Contained in tip

Added comments about migrating branches and how to 'fix them'. Added a warning message when creating a repo with an ixParent during the migration.

Changeset 22b0ad8f0907

Parent 3422d292d9e8

by Profile picture of User 1712<sonny@fogcreek.com>

Changes to one file · Browse files at 22b0ad8f0907 Showing diff from parent 3422d292d9e8 Diff from another changeset...

 
6
7
8
9
 
 
10
11
12
 
143
144
145
 
 
 
 
 
 
146
147
148
 
6
7
8
 
9
10
11
12
13
 
144
145
146
147
148
149
150
151
152
153
154
155
@@ -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'],