public:user_software:documentation:lofarsvn

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
public:user_software:documentation:lofarsvn [2016-12-15 09:18] – [Handling merge conflicts] Arno Schoenmakerspublic: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
 +<code>
 +svn log --stop-on-copy --verbose | tail -n 20
 +</code>
 +comes handy.  It will tell you what the ancestor of your branch is.
  
 So, let's merge the changes from the trunk (in this example!) into your task branch. Make sure you're at the top-level ''LOFAR'' directory in your checked out task branch before issuing the following command: So, let's merge the changes from the trunk (in this example!) into your task branch. Make sure you're at the top-level ''LOFAR'' directory in your checked out task branch before issuing the following command:
 <code> <code>
-svn merge ^/trunk+svn merge --dry-run ^/trunk
 </code> </code>
-You may wish to use the ''%%--%%dry-run'' option first to see the result of the merge. This will not actually change any files, but will tell you what you can expect and will detect conflicts.+The ''%%--%%dry-run'' option allows you to first to see the result of the merge. This will not actually change any files, but will tell you what you can expect and will detect conflicts.  After you have checked for problems you can issue the same command again but this time without the ''%%--%%dry-run'' option.
  
 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:
 <code> <code>
-svn delete ^/branches/LOFAR-Task1718-creation+svn delete ^/branches/LOFAR-Task1718-creation -m "Task #1234: branch LOFAR-Task1718-creation no longer needed"
 </code> </code>
  
  • Last modified: 2016-12-15 09:18
  • by Arno Schoenmakers