Rebasing branches
Rebasing detects and merges changes from the parent branch down to the child branch. This ensures the child branch includes the most current files. For example, Cathy and Jon work on bug fixes in their workspace branches. Jon completes his work and promotes changes to the parent branch. Cathy needs his changes to fix a bug. She rebases from the parent branch to merge Jon’s changes into her workspace branch.
Rebasing only applies new changes to branches. It does not copy file contents between branches. The file version that was last rebased from is tracked on the Surround SCM Server. If a version in the parent branch was already rebased to the child branch, the file cannot be rebased until the version changes in the branch it was rebased from. It does not matter if the file contents are different. See No Files to Rebase in Surround SCM for information.
1. Select the branch to rebase changes to and choose Branch > Rebase Branch.
The Rebase Branch dialog box opens.
2. Enter any Comments, such as the reason for rebasing the branch.
3. Select a Rebase branch based on option.
- Latest version rebases from the latest version of each file.
- Timestamp rebases from the specified timestamp.
- Label rebases from the selected label. Click Select to view label details or search for a label. See Selecting labels.
- Latest version in state rebases from the latest version of each file in the selected workflow state.
- Snapshot rebases from the selected snapshot branch.
4. Select Skip server auto-merge to rebase all files and overwrite any changes in the current branch.
5. Click Preview.
The Rebase Preview dialog box opens. Files that will be rebased, files that will not be rebased, and files with conflicts are displayed. You can perform actions and resolve conflicts based on the file status and your security permissions. See Rebase preview.
6. Select a file and click Rebase File to rebase it or click Rebase All to rebase all files.
The Rebase Status dialog box opens. You can perform many of the same actions available in the Rebase Preview dialog box.
7. Click Close when you finish.