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

resolving obstructions

From: Miller, Eric <Eric.Miller_at_amd.com>
Date: 2007-02-23 18:01:54 CET

Can anyone tell me how to resolve the following scenario:

-Setup the test:
svn mkdir test
touch test/afile
svn add test
svn ci -m 'testing'

-Create an obstruction here:
rm -rf test
mkdir test
touch test/bfile

-See the obstruction:
svn status
  ~ test

What I want to do is check in the new test/ as a revision of the old
test/.
The rm, mkdir, and touch commands approximate a 3rd party application
that removes and generates data with non-svn commands.

How can I resolve this with svn commands and avoid temp files?
I know you can fake it by using a clean .svn file from an update:

mv test test_obs
svn up test
mv test/.svn test_obs
rm -rf test
mv test_obs test
(delete missing, add unversioned)
svn ci -m 'ugh' test

I don't like this especially because of the need to do a full update
just to get the .svn dir.

Is there a better way?

Eric

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Feb 23 18:02:33 2007

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.