~ubuntu-branches/ubuntu/lucid/mercurial/lucid

« back to all changes in this revision

Viewing changes to tests/svn/svndump-tags.sh

  • Committer: Bazaar Package Importer
  • Author(s): Vernon Tang
  • Date: 2009-01-18 10:39:58 UTC
  • mfrom: (8.1.1 sid)
  • Revision ID: james.westby@ubuntu.com-20090118103958-4ep2fqb5nl2pyc7y
Tags: 1.1.2-2
* debian/mercurial.postinst: symlink /usr/share/doc/mercurial if dpkg didn't
  do it when upgrading (closes: #512155)
* debian/control: mercurial-common replaces all earlier versions of
  mercurial

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
#
 
3
# Use this script to generate tags.svndump
 
4
#
 
5
 
 
6
mkdir temp
 
7
cd temp
 
8
 
 
9
mkdir project-orig
 
10
cd project-orig
 
11
mkdir trunk
 
12
mkdir branches
 
13
mkdir tags
 
14
mkdir unrelated
 
15
cd ..
 
16
 
 
17
svnadmin create svn-repo
 
18
svnurl=file://`pwd`/svn-repo
 
19
svn import project-orig $svnurl -m "init projA"
 
20
 
 
21
svn co $svnurl project
 
22
cd project
 
23
echo a > trunk/a
 
24
svn add trunk/a
 
25
svn ci -m adda
 
26
echo a >> trunk/a
 
27
svn ci -m changea
 
28
echo a >> trunk/a
 
29
svn ci -m changea2
 
30
# Add an unrelated commit to test that tags are bound to the
 
31
# correct "from" revision and not a dummy one
 
32
echo a >> unrelated/dummy
 
33
svn add unrelated/dummy
 
34
svn ci -m unrelatedchange
 
35
# Tag current revision
 
36
svn up
 
37
svn copy trunk tags/trunk.v1
 
38
svn copy trunk tags/trunk.badtag
 
39
svn ci -m "tagging trunk.v1 trunk.badtag"
 
40
echo a >> trunk/a
 
41
svn ci -m changea3
 
42
# Fix the bad tag
 
43
# trunk.badtag should not show in converted tags
 
44
svn up
 
45
svn mv tags/trunk.badtag tags/trunk.goodtag
 
46
svn ci -m "fix trunk.badtag"
 
47
cd ..
 
48
 
 
49
svnadmin dump svn-repo > ../tags.svndump
 
 
b'\\ No newline at end of file'