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

[BUG?] svn add doesn't recognize if a directory already contains a .svn subdirectory.

From: <makl_at_tigris.org>
Date: 2004-02-25 19:31:20 CET

I think the add should fail instead of overwriting and ignoring existing
files

$ svn --version
svn, version 0.37.0 (r8509)
    compiled Jan 25 2004, 22:51:07

$ svnadmin create test

$ svn co file:///g:/repos/test wc1
Checked out revision 0.

$ mkdir wc1\dir1
$ mkdir wc1\dir1\.svn
$ date /t 1>wc1\dir1\.svn\important-data
$ time /t 1>wc1\dir1\.svn\entries

$ type wc1\dir1\.svn\entries
  7:58

$ svn add wc1\dir1
A wc1\dir1

$ dir /b wc1\dir1\.svn
empty-file
entries
format
important-data
prop-base
props
README.txt
text-base
tmp
wcprops

$ type wc1\dir1\.svn\entries
<?xml version="1.0" encoding="utf-8"?>
<wc-entries
    xmlns="svn:">
<entry
    name=""
    url="file:///g:/repos/test/dir1"
    kind="dir"
    schedule="add"
    revision="0"/>
</wc-entries>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Feb 25 19:28:57 2004

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.