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

exporting deleted directories

From: Thomas Moschny <moschny_at_ipd.uni-karlsruhe.de>
Date: 2005-02-17 23:15:42 CET

Hi!

There's imho a bug in svn export when exporting a locally modified working
copy. It exports deleted directories as empty directories.

The following script shows the problem

#! /bin/bash

# setup (execute in an empty dir)
svnadmin create repo
svn co file://$(pwd)/repo work
mkdir -p work/dir1 work/dir2
touch work/dir1/file1 work/dir2/file2
svn add work/dir1 work/dir2
svn commit -m '' work

# now change the working copy
svn rm work/dir1
echo "test" >> work/dir2/file2

# and export
svn export work export

# check result
find export

The output from the find command shows on my machine (svn 1.1.3):
export
export/dir1
export/dir2
export/dir2/file2

While file2 correctly reflects the state of the working copy, dir1 should not
be there.

Regards,
Thomas

  • application/pgp-signature attachment: stored
Received on Thu Feb 17 23:18:15 2005

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.