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

Re: svn diff doesn't include repository path of changed files

From: Jack Repenning <jrepenning_at_collab.net>
Date: 2003-08-18 18:48:52 CEST

At 10:08 AM -0500 8/18/03, Ben Collins-Sussman wrote:
>The reason I say this is that 'svn diff's internal diff mechanism
>*does* give the paths you want. Witness:
>
>
>[sussman@kepler:~/projects/svn]$ echo "foo" >>
>subversion/clients/cmdline/diff-cmd.c
>
>[sussman@kepler:~/projects/svn]$ svn status
>M subversion/clients/cmdline/diff-cmd.c
>
>[sussman@kepler:~/projects/svn]$ svn diff
>Index: subversion/clients/cmdline/diff-cmd.c

I think you missed a step in the question, didn't you, Ben? The
problem statement included cd'ing down somewhere into the project;
the diffs are reported relative to "."; the request is that they
(also) be identified relative to the repository root:

(dhcp64:\~/svnp2/www)
> svn --version
svn, version 0.26.0 (dev build)

(dhcp64:\~/svnp2/www)
> pwd
/Users/jrepenning/svnp2/www # from svn co http://.../svnp2/trunk svnp2

(dhcp64:\~/svnp2/www)
> date >> index.html

(dhcp64:\~/svnp2/www)
> svn diff
Index: index.html # no repository root here
===================================================================
--- index.html (revision 2) # not here, too
+++ index.html (working copy)
@@ -6,3 +6,4 @@
      This is new project content.
    </body>
  </html>
+Mon Aug 18 09:44:26 PDT 2003

-- 
-==-
Jack Repenning
CollabNet, Inc.
8000 Marina Boulevard, Suite 600
Brisbane, California 94005
o: 650.228.2562
c: 408.835-8090
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Aug 18 18:49:41 2003

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