Mercurial > hgsubversion
view tests/fixtures/truncatedhistory.sh @ 861:6fc7f74f0cf6
stupid: force non-incremental mode for unrelated branches creation
Apparently, svn < 1.7 was already taking this path since it could not diff
unrelated branches. svn >= 1.7 learnt to do that but supporting it in the
regular stupid mode needs some work. Be lazy for now.
author | Patrick Mezard <patrick@mezard.eu> |
---|---|
date | Thu, 19 Apr 2012 15:08:07 +0200 |
parents | 3b60f223893a |
children |
line wrap: on
line source
#!/bin/sh # # Generate truncatedhistory.svndump # mkdir temp cd temp mkdir project-orig cd project-orig mkdir project1 mkdir project2 cd .. svnadmin create testrepo svnurl=file://`pwd`/testrepo svn import project-orig $svnurl -m "init project" svn co $svnurl project # Make a single revision in trunk cd project/project1 echo a > a svn add a svn ci -m "add a" cd .. svn up # Rename the project svn mv project1 project2/trunk svn ci -m "rename project1" cd project2/trunk echo b > b svn add b svn ci -m "add b" cd ../../.. svnadmin dump testrepo > ../truncatedhistory.svndump