Mercurial > hgsubversion
comparison tests/fixtures/delete_restore_trunk.sh @ 908:c4ee11a5d04c
pull: add a hgsubversion.unsafeskip option to omit unwanted revs
author | Bryan O'Sullivan <bryano@fb.com> |
---|---|
date | Wed, 16 May 2012 16:52:25 -0700 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
907:173065f9b715 | 908:c4ee11a5d04c |
---|---|
1 #!/bin/bash | |
2 set -e | |
3 mkdir temp | |
4 cd temp | |
5 svnadmin create repo | |
6 svn co file://`pwd`/repo wc | |
7 cd wc | |
8 mkdir branches trunk tags | |
9 svn add * | |
10 svn ci -m 'btt' | |
11 echo foo > trunk/foo | |
12 svn add trunk/foo | |
13 svn ci -m 'add file' | |
14 svn up | |
15 svn rm trunk | |
16 svn ci -m 'delete trunk' | |
17 svn up | |
18 cd .. | |
19 svn cp -m 'restore trunk' file://`pwd`/repo/trunk@2 file://`pwd`/repo/trunk | |
20 cd wc | |
21 svn up | |
22 echo bar >> trunk/foo | |
23 svn ci -m 'append to file' | |
24 svn up | |
25 cd ../.. | |
26 svnadmin dump temp/repo > delete_restore_trunk.svndump | |
27 echo | |
28 echo 'Complete.' | |
29 echo 'You probably want to clean up temp now.' | |
30 echo 'Dump in branch_delete_parent_dir.svndump' | |
31 exit 0 |