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

Re: question - diff with head

From: Ryan Schmidt <subversion-2009b_at_ryandesign.com>
Date: Mon, 31 Aug 2009 05:45:09 -0500

On Aug 30, 2009, at 21:40, Ben Kim wrote:

> When I do diff st -u,
> it shows that file1 is different in the repo. For example, it says
> * 614 file1
> Status against revision: 656
> (* is the comment.)
> Then when I do
> svn diff file1
> it does not show the difference with version 656. It just shows
> whether I
> have a local modification against the version I last updated to (614).
> Only when I do
> svn diff -r656 file1
> I get the difference.
> Is this supposed to be?

Yes. The program behaves correctly.

> Is there a switch to make this happen without -r656?

I think the switch is "-r656" :) (or perhaps "-rHEAD"; I haven't tried).

> http://svnbook.red-bean.com/en/1.0/re09.html
> says "If either N or M are omitted, a value of HEAD is assumed."
> but it seems not happening on my svn.

I think it's talking about using svn diff against URLs here, not
against a working copy. Perhaps the wording could be clarified.

Though in this case the documentation probably hasn't changed much
since then, please note that the above URL is part of the
documentation for Subversion 1.0, which is very old. Here is the
corresponding documentation for Subversion 1.5, which is the most
recent version of the documentation that has been finished:


P.S: Please don't reply to unrelated messages in order to start a new
thread. Threaded mail readers and the mailing list archives will link
your message to the old one, although they are not related in content.
To start a new thread, please use the New Message function in your
mail program.


To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-08-31 12:46:08 CEST

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

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