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

[bug?] can't update a single file/dir from HEAD if it doesnt exist in the WC

From: C.A.T.Magic <c.a.t.magic_at_gmx.at>
Date: 2004-05-09 06:24:02 CEST

Hi,

how can I get a file or directory
from HEAD if it does not exist in my WC yet:
( tried both, svn 1.0.2 and 1.1.0-head)

$> echo foo>bar.h
$> svn add bar.h
A bar.h

$> svn commit -m ""
Adding bar.h
Transmitting file data .
Committed revision 7268.

$> svn update -r7260 bar.h
D bar.h
Updated to revision 7260.

$> svn update -rHEAD bar.h
svn: 'bar.h' is not under version control

I tried it with svn checkout, but this gives me

$> svn checkout file:///($REPOS)/bar.h
svn: URL 'file:///($REPOS)/bar.h' refers to a file, not a directory

I tried the same for for a directory, which is even more annoying:

$> svn add zoo
A zoo

$> svn commit -m ""
Adding zoo
Transmitting file data .
Committed revision 7269.

$> svn update -r 1 zoo
D zoo
Updated to revision 1.

$> svn checkout file:///($REPOS)/zoo
Checked out revision 7269.

$> svn update
svn: Failed to add directory 'zoo': object of the same name already exists

--> due to the explcit "checkout" of 'zoo', svn creates a
_disconnected_ workingcopy of 'zoo', and then stumbles over
its own 'zoo'-folder on the next update.

i noticed, that the entries file contains
<entry
    name="zoo"
    kind="dir"
    deleted="true"/>
'deleted' due to the "svn update -r1 zoo" command,
and that the checkout does not modify this entry,
which it better should.

i found no existing issues on this in the tracker,
though some may be slightly related ( #1554, #1591, #1736 ).

:-)
=====
c.a.t.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sun May 9 06:24:27 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.