Sign in or 

| Benefits of SVN Merge Yes, you could copy the good file off to the side (or in your paste buffer), and then paste it into the branch file and commit. However, using the SVN merge feature is better because that sets the svn:mergeinfo metadata so that you can track the true history of a file. Copy/pasting does not do this. |
| Project, Folder, File? If you need to do extensive development in a branch that relies on deep compiles of code, do the whole project. Just a few stand-alone changes in a well-isolated area? Do the Folder. A simple tweak of a single file that is isolated? Just do the file... |
| Complete Your Work | |
| Commit to Branch | |
| Compare to Trunk | |
| See Diff | |
| Your Changed File | Revision 9875 |
| Log | Add revision number/file in Jira comment -- especially important when we look to bring fixes into a branch. |
| commit branch | commit your local changes to branch, including unversioned files |
| determine branch creation | go to your branch within SVN repository browser, right click, show log and select "stop on copy". scroll to the end (page if needed) to see the revision when the branch was copied |
| switch to TRUNK | Switch your working copy from the branch back to TRUNK |
| verify you are in TRUNK | verify your working copy says you are in trunk |
| merge BRANCH into working copy | merge a range of revisions in the branch into the working copy. the merge dialog FROM should be the BRANCH url and the revision when the branch was created, so you don't go back to the start of time. the merge dialog TO is the same BRANCH url and would be the head revision, but you can specify an earlier revision in the branch. |
| commit working to TRUNK | manually fix any merge conflicts, test locally, then commit your working to TRUNK |
| Switch to Branch | Right click your project: and go to Team > Switch: |
| Select Branch | Click Browse to search the BRANCHES in the repository: Here we have selected BETA2.1 Branch: Click OK |
| Select Merge | From the perspective of the file that needs to be updated (either via the navigator or the editor window), right-click to choose Merge: Click Browse to search the TRUNK in the repository for the file that you are replacing: Use the "Show Log" button to find the From and To revisions: Notice that I have selected revisions in both cases. Click OK |
| Commit the changes | Now that you have just merged from the TRUNK to the BRANCH, you need to commit these changes to the BRANCH itself. |
|
JonKern |
Latest page update: made by JonKern
, Apr 8 2011, 11:46 AM EDT
(about this update
About This Update
13 words deleted view changes - complete history) |
|
Keyword tags:
agile
development
process
More Info: links to this page
|