[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: David Sitsky <sits_at_users.sourceforge.net>
Date: 2003-08-19 01:17:19 CEST

On Tue, 19 Aug 2003 09:12, Garrett Rooney wrote:
> David Sitsky wrote:
> >>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:
> >
> > [...]
> >
> >>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
> >
> > Yep - this is the problem I am referring to. Is there any reason why
> > the Index field could contain the repository path?
>
> Yes, because when you cd into the subdirectory, your svn process now has
> no idea that there are more working copy directories above it in the
> hierarchy. If you want the whole path, run it from the base directory
> in the working copy.

I understand I can do that, but not all users do, and sometimes, it might
only be desirable to obtain a diff from one segment of my project tree.

It was a while since I tried out subversion, but didn't it have some
control files in each directory which told it what part of the repository
the directory was a part of?

-- 
Cheers,
David
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Aug 19 01:29:24 2003

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