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

Re: Relative path weirdness with commit

From: Jonatan Lander <jonatan_at_wineasy.se>
Date: 2004-09-29 17:41:00 CEST

Ping. Is this a bug?

On 2004-09-26, at 10.52, Jonatan Lander wrote:
> 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 Wed Sep 29 17:41:55 2004

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