Re: Diff merge question
Jeremy Sheeley <[email protected]> Thu, 08 Apr 2004 06:29:36 -0500
| Newsgroups | gmane.comp.version-control.sourcegear-vault.user |
|---|---|
| Message-ID | <[email protected]> |
To accomplish what you want. 1. Show History on the file. 2. Hit OK on the History Filter dialog. 3. When you get the History Explorer dialog, right click on the version that has the changes you want. Select Diff from the context menu. 4. In the Diff dialog, choose Diff against working folder version. 5. In the Diff/Merge tool you can right-click on any change and choose to put it into the other file. Do this for any changes that you want in your working folder version. When you exit the Diff/Merge tool, you will be prompted to save the working folder file. Save it. 6. Do a Show Differences on the file in your pending change set tab, just to make sure that all of the changes that you want are in that file. -Jeremy J.A.Jansen wrote: > I was wondering if the following functionality is present in the > source gear client. > > I want to do a diff between the current working copy of a file, and a > specific revision (not the latest) of the same file in the vault. > This specific revision has not been labeled though. > So for example: > Do a diff between the local file and revision 5 of the same file which > is checked in in the vault (the latest revision of the file > in the vault is revision 9). > > Once I have the diff between the two files, I would then like to do a > merge of the parts needed from the old revision. > > Background behind this question is the following: > We removed some code in an earlier revision of a file, since this code > wasn't to be used yet. However now > this code is going to be used and I have to merge this code back into > the head revision. > The other programmer on the project however did not label this > specific revision. > > I could of course backup my working copy, then get the specific > revision, then do the merge, and finally check the > working copy back in, but I was wondering if there is an easier way to > do this. > > With regards, > > Arjan Jansen > > > _______________________________________________ > vault-list mailing list > [email protected] > http://lists.sourcegear.com/cgi-bin/mailman/listinfo/vault-list