Mercurial > hgsubversion
view tests/fixtures/copybeforeclose.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 | 1b9d004a8c0a |
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 svn add * svn ci -m 'btt' cd trunk echo a > a svn add a svn ci -m 'Add file.' svn up cd .. svn cp trunk branches/test svn ci -m 'Branch.' svn up cd branches/test/ svn mv a b svn ci -m 'Move on branch.' svn up cd ../../ svn up svn rm branches/test svn ci -m 'Close branch.' cd ../.. svnadmin dump temp/repo > copybeforeclose.svndump echo echo 'Complete.' echo 'You probably want to clean up temp now.' echo 'Dump in copybeforeclose.svndump' exit 0