comparison tests/fixtures/symlinks.sh @ 97:0d3a2a7cefa3

hg_delta_editor: fix symlink prefix confusion - SubversionRepo.get_file() strips the symlink prefix - Enforce that hg_delta_editor symlink data always contains the prefix. The alternative was seducing and more consistent with hg content but it makes the code more complicated since svn:special can be set before or after the content is set, and we need it in apply_textdelta() This issue fixes jQuery repository conversion at r3674.
author Patrick Mezard <pmezard@gmail.com>
date Thu, 20 Nov 2008 22:41:15 -0600
parents
children 24a64fb0e74b
comparison
equal deleted inserted replaced
96:9b5e528f67f8 97:0d3a2a7cefa3
1 #!/bin/sh
2 #
3 # Generate symlinks.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 cd ..
14
15 svnadmin create testrepo
16 svnurl=file://`pwd`/testrepo
17 svn import project-orig $svnurl -m "init project"
18
19 svn co $svnurl project
20 cd project/trunk
21 echo a > a
22 ln -s a linka
23 mkdir d
24 ln -s a d/linka
25 svn add a linka d
26 svn ci -m "add symlinks"
27 # Move symlinks
28 svn mv linka linkaa
29 svn mv d d2
30 svn commit -m "moving symlinks"
31 # Update symlinks (test "link " prefix vs applydelta)
32 echo b > b
33 rm linkaa
34 ln -s b linkaa
35 rm d2/linka
36 ln -s b d2/linka
37 svn ci -m "update symlinks"
38 cd ../..
39
40 svnadmin dump testrepo > ../symlinks.svndump