Skip to content

Commit b455285

Browse files
Merge pull request mendix#10354 from tknippenberg/RetainingBranches
Added Git migration workaround branch recreation
2 parents 4b67ecf + d5ab3db commit b455285

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

content/en/docs/developerportal/repository/team-server/migrate-to-git.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,29 @@ To set up your local SVN repository, follow these steps:
136136

137137
{{% alert color="info" %}}To inspect files from a historical revision, use **TortoiseSVN** and select **Update to revision** to check a specific revision.{{% /alert %}}
138138

139+
#### Workaround to Retain Branch Contents
140+
141+
During a migration without history, all branches apart for the main branch are removed. As it is not always possible to converge all branches by merging them into the main branch, you can manually back up branch contents, and recreate them post-migration.
142+
143+
{{% alert color="info" %}}
144+
Mendix recommends to first attempt these steps on a dummy project to familiarize yourself with the process.
145+
{{% /alert %}}
146+
147+
Follow these steps:
148+
149+
1. For each branch you want to retain:
150+
151+
1. Check out the SVN branch.
152+
2. Merge the latest state of the main branch into the branch you want to retain. This ensures there is a common base, so you can resolve any conflicts on this branch post-migration.
153+
3. Create a compressed .zip version of the entire project folder, except for the *.svn* folder. Clearly name the .zip folder so you recognize which branch it represents afterwards.
154+
155+
2. Migrate to Git without history.
156+
3. Recreate the branches you wanted to retain. Do this before upgrading the main branch to a different Mendix version. For each branch:
157+
158+
1. Create a new branch from the main branch in Studio Pro and clone it locally.
159+
2. Overwrite the contents of the project folder, except for the *.git* folder, with the contents of the .zip.
160+
3. From Studio Pro, commit your changes with a *Branch recreated* message and push to the server.
161+
139162
### Migrating With History {#with-history}
140163

141164
During migration with history, all app history, including revisions for all branches, is copied from SVN to Git.

0 commit comments

Comments
 (0)