You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Johannes Holzer <hl...@arcor.de> on 2006/03/21 14:37:31 UTC
svn add xyz; svn commit xyz; svn ls xyz;
Hi there
I guess, this problem is known:
If i add or remove a file and commit it, "svn ls" does not know the changed
until an "svn update".
This is a quite strange behavior, if you are a user.....
If there exists a bug, please point me to it. If possible, i'll vote for this
bug.
johannes
Exact steps to reproduce: (linux, LANG=C)
$:/tmp/svntest> svnadmin create REP
$:/tmp/svntest> svn co file://`pwd`/REP CHECKOUT
Checked out revision 0.
$:/tmp/svntest> cd CHECKOUT/
$:/tmp/svntest/CHECKOUT> touch MY_FILENAME
$:/tmp/svntest/CHECKOUT> svn add MY_FILENAME
A MY_FILENAME
$:/tmp/svntest/CHECKOUT> svn ls
$:/tmp/svntest/CHECKOUT> svn ci MY_FILENAME
Adding MY_FILENAME
Transmitting file data .
Committed revision 1.
$:/tmp/svntest/CHECKOUT> svn ls
$:/tmp/svntest/CHECKOUT> # <<--------- I EXPECT TO SEE MY_FILENAME HERE!
$:/tmp/svntest/CHECKOUT> svn up
At revision 1.
$:/tmp/svntest/CHECKOUT> svn ls
MY_FILENAME
$:/tmp/svntest/CHECKOUT> svn rm MY_FILENAME
D MY_FILENAME
$:/tmp/svntest/CHECKOUT> ls
$:/tmp/svntest/CHECKOUT> svn ls
MY_FILENAME
$:/tmp/svntest/CHECKOUT> svn ci MY_FILENAME
Deleting MY_FILENAME
Committed revision 2.
$:/tmp/svntest/CHECKOUT> svn ls
MY_FILENAME
$:/tmp/svntest/CHECKOUT> # <<------- I EXPECT _NOT_ TO SEE MY_FILENAME HERE!
$:/tmp/svntest/CHECKOUT> svn up
At revision 2.
$:/tmp/svntest/CHECKOUT> svn ls
$:/tmp/svntest/CHECKOUT>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: svn add xyz; svn commit xyz; svn ls xyz;
Posted by Johannes Holzer <hl...@arcor.de>.
Am Dienstag, 21. März 2006 16:29 schrieb Ryan Schmidt:
>
> Mixed-revision working copies are explained in the book.
>
Thank you for your answer.
The book is right - i'm a bit confused. But, okay, if it's a feature.....
johannes
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: svn add xyz; svn commit xyz; svn ls xyz;
Posted by Ryan Schmidt <su...@ryandesign.com>.
On Mar 21, 2006, at 15:37, Johannes Holzer wrote:
> Hi there
>
> I guess, this problem is known:
>
> If i add or remove a file and commit it, "svn ls" does not know the
> changed
> until an "svn update".
>
> This is a quite strange behavior, if you are a user.....
>
> If there exists a bug, please point me to it. If possible, i'll
> vote for this
> bug.
There is no bug. The behavior is intended. Until you update your
working copy, you have a mixed-revision working copy, where the
revision of the directory itself is before the revision where you
delete the file.
Mixed-revision working copies are explained in the book.
http://svnbook.red-bean.com/nightly/en/svn.basic.in-
action.html#svn.basic.in-action.mixedrevs
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org