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

Re: [PATCH] Stop resurrecting deleted files in ~/.subversion

From: <brane_at_xbc.nu>
Date: 2003-01-25 00:32:23 CET

Eric Gillespie wrote:

Currently, svn has the annoying behavior of restoring files i have
deleted from the .subversion configuration directory. See how
annoying it is:

0 .subversion% svn st
? README
M servers
0 .subversion% rm README
0 .subversion% ls README
ls: README: No such file or directory
1 .subversion% svn st
? README
M servers

Grrrrr.

Well, tough. What are you removing that file for? Does it bother you so
much?

* subversion/libsvn_subr/config_file.c:

  (svn_config_ensure): When the .subversion directory does not exist,
  attempt to create it and the default files. Do not attempt to
  create the default files when the directory already exists.

This seems like a very, very fragile way to go. *If* it turns out that
we really need this feature -- something I'm not sure about -- then it's
be much better to test for ~/.subversion/README, just like we test for
.svn/README in the WC. That would at least give us a measure of
confidence that Subversion created the config directory, not someone else.

-- 
Brane Čibej   brane_at_xbc.nu   http://www.xbc.nu/brane/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Oct 14 02:16:10 2006

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.