[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: Francois Beausoleil <fbos_at_users.sourceforge.net>
Date: 2003-08-19 19:21:59 CEST

svn commit has the same kind of, shall we say, "problem". If I commit
from the root of the WC and do not specify a message, I get full paths to
the files in the prepared commit message. If I specify a single file,
the prepared message will contain only the filename and no path
information. Committing on two paths, svn will find the common parent to
both folders and use this as the root of the commit.

Some examples will help:
E:\java\leadmanagement>svn info
Url: http://svn.hopto.org:8193/repos/rac/leadmanagement/trunk

E:\java\leadmanagement>svn st
M src\java\core\jobnudge\servlets\Login.java
A src\java\tests\abc.txt

E:\java\leadmanagement>svn commit

--This line, and those below, will be ignored--

M src/java/core/jobnudge/servlets/Login.java
M src/java/tests/abc.txt

E:\java\leadmanagement>svn commit src\java\core

--This line, and those below, will be ignored--

M core/jobnudge/servlets/Login.java

E:\java\leadmanagement>svn commit

--This line, and those below, will be ignored--

M Login.java

E:\java\leadmanagement>svn commit src\java\core src\java\tests

--This line, and those below, will be ignored--

M core/jobnudge/servlets/Login.java
A tests/abc.txt

E:\java\leadmanagement>svn --version
svn, version 0.25.0 (r6433)
   compiled Jul 10 2003, 22:05:10

System is Win2K SP3. Server is Apache 2.0.47 (although in this case,
this does not matter. Client-issue only).

What I know is that when I specify a path, the svn-commit.tmp file will
be created in the folder where the commit path is. So, when nothing is
specified, '.' is implied, and svn-commit.tmp is created as
.\svn-commit.tmp. When I pass src\java\core, the svn-commit.tmp file is
created as .\src\java\core\svn-commit.tmp.

I believe there was a request, oh so long ago, where someone asked if the
prepared svn-commit.tmp message could contain the path to the root of the
WC. I understand that this is not possible, but at least, if I start the
commit from the root of my WC, at least give me the full path from the
root of the WC, and not from the path to the svn-commit.tmp.

Thanks for listening !


On 18 Aug 2003 18:47:21 -0500, "Ben Collins-Sussman" <sussman@collab.net>
> David Sitsky <sits@users.sourceforge.net> writes:
> > 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?
> Sure, just like CVS, each directory has an administrative area. The
> admin area contains a repository UUID and the full URL to the
> directory in the repository. But otherwise, as garrett said, each
> directory is an independent working copy. A directory has no idea
> where the "root" of the working copy is (i.e. how many parents it
> has), nor does it know its absolute path in the repository. (The URL
> isn't enough; the wc doesn't know where the host-repository part ends
> and the inner repository path begins.)
Developer of Java Gui Builder

To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Aug 19 19:23:02 2003

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