Mercurial > hgsubversion
comparison tests/fixtures/commit-to-tag.sh @ 447:0d3b5acb1d51
tags: handle edits to tags as gracefully as possible
author | Augie Fackler <durin42@gmail.com> |
---|---|
date | Tue, 23 Jun 2009 21:38:27 -0500 |
parents | |
children | bda5b47ad2a2 |
comparison
equal
deleted
inserted
replaced
446:cbd230043379 | 447:0d3b5acb1d51 |
---|---|
1 #!/bin/sh | |
2 mkdir temp | |
3 cd temp | |
4 svnadmin create repo | |
5 REPOPATH="file://`pwd`/repo" | |
6 svn co $REPOPATH wc | |
7 cd wc | |
8 mkdir -p branches/magic trunk tags | |
9 svn add * | |
10 svn ci -m 'btt' | |
11 cd branches/magic | |
12 for a in alpha beta gamma; do | |
13 echo $a > $a | |
14 svn add $a | |
15 svn ci -m "Add file $a" | |
16 done | |
17 cd ../.. | |
18 svn up | |
19 svn cp $REPOPATH/branches/magic $REPOPATH/tags/will-edit -m 'Make tag to edit' | |
20 svn up | |
21 | |
22 cd branches/magic | |
23 for a in delta iota lambda; do | |
24 echo $a > $a | |
25 svn add $a | |
26 svn ci -m "Add file $a" | |
27 done | |
28 cd ../.. | |
29 | |
30 cd tags/will-edit | |
31 svn rm alpha | |
32 svn ci -m 'removed alpha on a tag. Moves tag, implicit branch.' | |
33 cd ../.. | |
34 | |
35 cd branches/magic | |
36 for a in omega; do | |
37 echo $a > $a | |
38 svn add $a | |
39 svn ci -m "Add file $a" | |
40 done | |
41 cd ../.. | |
42 | |
43 cd ../.. | |
44 svnadmin dump temp/repo > commit-to-tag.svndump | |
45 echo | |
46 echo 'Complete.' | |
47 echo 'You probably want to clean up temp now.' | |
48 echo 'Dump in commit-to-tag.svndump' | |
49 exit 0 |