Diff in History Explorer

If you are having a problem using Vault, post a message here.

Moderator: SourceGear

Post Reply
guilmori
Posts: 13
Joined: Thu May 14, 2009 9:14 am

Diff in History Explorer

Post by guilmori » Mon Aug 31, 2009 2:25 pm

I have to code check work of new developers.
When they have finished a task, I call Show History, filtering on the user and task# (in comments).
Let say the guy made 3 check-in on a file. Original version was 1, so I see in the History Explorer a line for check-in version 2, 3 and 4.
I want to diff between original version and the last version he did check-in (version 1 and 4) from the History Explorer, but I cannot figure how to do this, is it possible ? If I could call Show History on a file from within the History Explorer, that would be enough for me.

Guillaume.

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: Diff in History Explorer

Post by Beth » Tue Sep 01, 2009 9:25 am

Select the two versions you want by using the CTRL key, then right-click and select Diff. Or, you can right-click version 1, select Diff, and click the option to Diff against the current version in the repository.
Beth Kieler
SourceGear Technical Support

guilmori
Posts: 13
Joined: Thu May 14, 2009 9:14 am

Re: Diff in History Explorer

Post by guilmori » Tue Sep 01, 2009 9:40 am

Select the two versions you want by using the CTRL key, then right-click and select Diff. Or, you can right-click version 1, select Diff, and click the option to Diff against the current version in the repository.
The original version (ie: the version prior to the first check-in, version 1 in my example) is not listed, so I cannot select it.

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: Diff in History Explorer

Post by Beth » Tue Sep 01, 2009 12:38 pm

the version prior to the first check-in
The add should be your version one. It sounds like the same user didn't perform the add, right? You will want to either run another history query on just that file so that you have version one available to manipulate, or change your current query to open up the filters to allow version 1 to show. The issue is that the filter you've applied isn't going to show that version.
Beth Kieler
SourceGear Technical Support

guilmori
Posts: 13
Joined: Thu May 14, 2009 9:14 am

Re: Diff in History Explorer

Post by guilmori » Wed Sep 02, 2009 5:58 am

The add should be your version one. It sounds like the same user didn't perform the add, right?
Right.
As I said, I'm filtering on user and on a task # entered into the check-in comment, so only files modified by this user for the task # are listed.
So if the developer started to work on a file version 10, and made 3 check-in, I would see only version 11, 12 and 13 in the History Explorer.
When I check what he has done, I don't want to diff every check-in of a specific file, I want to see his changes to the file as a whole, a "before&after". To do this I need to diff between version 10 and 13.
You will want to either run another history query on just that file so that you have version one available to manipulate.
Yes, but I would like to do this from within the History Explorer, which i can't.
It is quite cumbersome to go back into the main screen and manually search the file, then call its history, as I may have dozens of different files to code check.

An other alternative could be to allow to Diff a file version against another specific version. I could then select the most recent check-in version in the History Explorer (ex: 13), call Diff, then manually select version to diff against (ex: 10).

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: Diff in History Explorer

Post by Beth » Wed Sep 23, 2009 4:45 pm

From the history explorer you can go to Query - Filter/Sort and change the criteria to add the other user. You could also get the old version to your disk and then diff against the working folder.

It sounds like though that a feature request will get what you are envisioning though, so I have logged a feature request.

Thanks for your feedback.

F: 14883
Beth Kieler
SourceGear Technical Support

Post Reply