comparison tests/fixtures/branchtagcollision.sh @ 821:f28e0f54a6ef

svnmeta: store youngest revision pulled from subversion This prevents re-pulling the same revision over and over, which was a problem when the most recent revision was a tagging revision that wouldn't exist properly in the revmap. This should also allow users to not re-pull huge volumes of commits that have no effect on the hg repository.
author Augie Fackler <durin42@gmail.com>
date Tue, 24 May 2011 21:07:27 -0500
parents
children
comparison
equal deleted inserted replaced
820:09f7c1c09207 821:f28e0f54a6ef
1 #!/bin/bash
2 #
3 # Generate branchtagcollision.svndump
4 #
5 # Generates an svn repository with a branch and a tag that have the same name.
6
7
8 mkdir temp
9 cd temp
10
11 svnadmin create testrepo
12 svn checkout file://`pwd`/testrepo client
13
14 cd client
15 mkdir trunk
16 mkdir branches
17 mkdir tags
18
19 svn add trunk branches tags
20 svn commit -m "Initial commit"
21
22 echo "fileA" >> trunk/fileA
23 svn add trunk/fileA
24 svn commit -m "Added fileA"
25
26 svn cp trunk branches/A
27 svn commit -m "added branch"
28
29 echo "fileB" >> trunk/fileB
30 svn add trunk/fileB
31 svn commit -m "Added fileB"
32
33 svn cp trunk tags/A
34 svn commit -m "added bad tag"
35
36 cd ..
37 svnadmin dump testrepo > ../branchtagcollision.svndump