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

Relative path weirdness with commit

From: Jonatan Lander <jonatan_at_wineasy.se>
Date: 2004-09-26 10:52:52 CEST

I just noticed something weird when I committed a file when I was in a
subdirectory of my working copy. The path to the file that was committed
is reported relative to the parent directory of the directory I was in.
Is this intended? I found it a little confusing that the path reported
by 'svn ci' is inconsistent with what 'svn add' and 'svn st' reports.
For example:

[pb:tmp-wc/foo/bar] jonatan% svn add baz
A baz
[pb:tmp-wc/foo/bar] jonatan% svn st
A baz
[pb:tmp-wc/foo/bar] jonatan% svn ci -m ""
Adding bar/baz
Transmitting file data .
Committed revision 2.

This happens both with 1.1.0rc3 and 1.0.6.

--8<-- Complete reproduction recipe: --8<--

#! /bin/sh
svnadmin create tmp-repos
svn co file://`pwd`/tmp-repos tmp-wc
cd tmp-wc
svn mkdir foo
svn mkdir foo/bar
svn ci -m ""
cd foo/bar
touch baz
svn add baz # Reports path as baz.
svn st # Reports path as baz.
svn ci -m "" # Reports path as bar/baz. Why?
cd ../../..
rm -rf tmp-repos tmp-wc

To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sun Sep 26 10:53:14 2004

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.