[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

RE: diff with previous rev. in current branch

From: Gavin Lambert <colnet_at_mirality.co.nz>
Date: Tue, 3 Mar 2015 18:54:07 -0800 (PST)

On 4/03/2015 00:57, Jan Šilar quoth:
> "Diff with previous version" comapres a file with previous revision. This is the only diff command I see in my context menu. This makes no sense when working in branches and the previous revision is in different branch. I suggest there is "diff with previous rev. in current branch" command instead.

It does make sense. If the current revision of that file is rev 1234, and the previous *change* of that file (according to the log of that individual file) was in rev 1200, then the file still exists and still has the same contents for rev 1200-1233.

So even if rev 1233 itself happened to be a change on a completely unrelated branch, the file contents at revision 1233 are still the same as they were at revision 1200, which is still what you would be diffing against if you selected the file at revision 1234 and said "diff with previous version".

> Btw. commands "Diff" and "Diff with URL" are not present in context menu. May be "Diff" would do what I expect.

"Diff with URL" will only show up if you open the context menu while holding shift, because it's an extended option that's not used very often.

"Diff" will only show up in contexts where it makes sense -- for example if you are selecting a file in your working copy that actually has local uncommitted changes.

> How can I compare file with previous revision in my branche? Thank you.

That depends on what state the file is in and what you want to compare it against. Play with it a bit and you should get used to it fairly quickly.

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=3102693

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2015-03-04 03:54:11 CET

This is an archived mail posted to the TortoiseSVN Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.