Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
public:user_software:documentation:lofarsvn [2016-12-15 09:18] – [Merging changes in a RELEASE! branch with the trunk] Arno Schoenmakers | public:user_software:documentation:lofarsvn [2018-11-16 15:18] (current) – [Preparing the reintegration of your TASK! branch with the parent branch] Added a reminder about how to find out what the parent of my task branch is Thomas Jürges | ||
---|---|---|---|
Line 224: | Line 224: | ||
== Let's merge == | == Let's merge == | ||
+ | |||
+ | If you are like me then it is possible that you have forgotten what the parent of your task branch is. In this case the command | ||
+ | < | ||
+ | svn log --stop-on-copy --verbose | tail -n 20 | ||
+ | </ | ||
+ | comes handy. | ||
So, let's merge the changes from the trunk (in this example!) into your task branch. Make sure you're at the top-level '' | So, let's merge the changes from the trunk (in this example!) into your task branch. Make sure you're at the top-level '' | ||
< | < | ||
- | svn merge ^/trunk | + | svn merge --dry-run |
</ | </ | ||
- | You may wish to use the '' | + | The '' |
If there are any merge conflicts, you need to resolve them. To do so, you will have to run the above merge-command first on your workspace of the task branch. | If there are any merge conflicts, you need to resolve them. To do so, you will have to run the above merge-command first on your workspace of the task branch. | ||
Line 267: | Line 273: | ||
Now that you've reintegrated your task branch with the parent branch, it's time to delete the obsoleted task branch: | Now that you've reintegrated your task branch with the parent branch, it's time to delete the obsoleted task branch: | ||
< | < | ||
- | svn delete ^/ | + | svn delete ^/ |
</ | </ | ||
Line 312: | Line 318: | ||
==== Handling merge conflicts ==== | ==== Handling merge conflicts ==== | ||
- | For guidelines on how to merge changes made in a branch to the trunk, see [[engineering: | + | For guidelines on how to merge changes made in a branch to the trunk, see [[# |
A merge conflict can occur when two or more people make different changes to the same file. When Subversion encounters a merge conflict (e.g. during an update), it will place specific markers in the original source file. | A merge conflict can occur when two or more people make different changes to the same file. When Subversion encounters a merge conflict (e.g. during an update), it will place specific markers in the original source file. |