Mercurial > hgsubversion
view tests/fixtures/spaces-in-path.sh @ 920:1be4ea4f3c0d
stupid: diff with the good revision when restoring branch
Converting history like:
r1 create trunk
r2 remove trunk
r3 make some unrelated commit
r4 restore trunk from r2
stupid mode would retrieve and apply the diff with r3 instead of the
one with r2. All the code deciding r2 is the actual parent was already
there, only the revision argument was not passed.
This fixes:
- test_delete_restore_trunk in comprehensive/test_stupid_pull.py
- test_delete_restore_trunk_stupid in comprehensive/test_verify_and_startrev.py
Tested on OSX 10.6 with macports svn-1.7.5. I can no longer test with
svn-1.6.
author | Patrick Mezard <patrick@mezard.eu> |
---|---|
date | Sun, 29 Jul 2012 13:13:56 +0200 |
parents | a739568f8d48 |
children |
line wrap: on
line source
#!/bin/sh mkdir temp cd temp svnadmin create repo svn co file://`pwd`/repo wc cd wc mkdir branches trunk tags mkdir tags/versions mkdir tags/blah svn add * svn ci -m 'btt' cd trunk for a in alpha beta gamma delta ; do echo $a > $a svn add $a done svn ci -m 'Add files.' echo 'foo bar' > 'foo bar' svn add 'foo bar' svn ci -m 'Add files.' mkdir 'blah blah' echo 'another file' > 'blah blah/another file' svn add 'blah blah' svn ci -m 'Add files.' cd .. svn up svn cp trunk branches/dev_branch svn ci -m 'Make a branch' cd ../.. svnadmin dump temp/repo > spaces-in-path.svndump echo echo 'Complete.' echo 'You probably want to clean up temp now.' echo 'Dump in spaces-in-path.svndump' exit 0