##// END OF EJS Templates
test-conflicts: conditionalize for no-symlink platforms...
Matt Harbison -
r34692:857fc331 default
parent child Browse files
Show More
@@ -75,13 +75,19 b' Cause a symlink to be backed up that poi'
75
75
76 $ hg up -q 0
76 $ hg up -q 0
77 $ mkdir ../sym-link-target
77 $ mkdir ../sym-link-target
78 #if symlink
78 $ ln -s ../../../sym-link-target b
79 $ ln -s ../../../sym-link-target b
80 #else
81 $ touch b
82 #endif
79 $ hg up b1
83 $ hg up b1
80 b: replacing untracked file
84 b: replacing untracked file
81 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
85 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
82 (activating bookmark b1)
86 (activating bookmark b1)
87 #if symlink
83 $ readlink.py .hg/origbackups/b
88 $ readlink.py .hg/origbackups/b
84 .hg/origbackups/b -> ../../../sym-link-target
89 .hg/origbackups/b -> ../../../sym-link-target
90 #endif
85
91
86 Perform an update that causes b/c to be backed up again - it should not go into the target dir
92 Perform an update that causes b/c to be backed up again - it should not go into the target dir
87
93
@@ -111,7 +117,8 b' Incorrectly configure origbackuppath to '
111 b/c: replacing untracked file
117 b/c: replacing untracked file
112 getting b/c
118 getting b/c
113 creating directory: $TESTTMP/repo/.hg/badorigbackups/b
119 creating directory: $TESTTMP/repo/.hg/badorigbackups/b
114 abort: Not a directory: '$TESTTMP/repo/.hg/badorigbackups/b'
120 abort: The system cannot find the path specified: '$TESTTMP/repo/.hg/badorigbackups/b' (glob) (windows !)
121 abort: Not a directory: '$TESTTMP/repo/.hg/badorigbackups/b' (no-windows !)
115 [255]
122 [255]
116 $ cat .hg/badorigbackups
123 $ cat .hg/badorigbackups
117 data
124 data
@@ -15,7 +15,11 b''
15 $ hg up 0
15 $ hg up 0
16 0 files updated, 0 files merged, 1 files removed, 0 files unresolved
16 0 files updated, 0 files merged, 1 files removed, 0 files unresolved
17 $ mkdir a
17 $ mkdir a
18 #if symlink
18 $ ln -s c a/b
19 $ ln -s c a/b
20 #else
21 $ touch a/b
22 #endif
19 $ hg add a/b
23 $ hg add a/b
20 $ hg commit -m "link"
24 $ hg commit -m "link"
21 created new head
25 created new head
@@ -50,7 +54,11 b' Update - local symlink conflicts with re'
50
54
51 $ hg up -q 0
55 $ hg up -q 0
52 $ mkdir a
56 $ mkdir a
57 #if symlink
53 $ ln -s x a/b
58 $ ln -s x a/b
59 #else
60 $ touch a/b
61 #endif
54 $ hg up dir
62 $ hg up dir
55 a/b: untracked file conflicts with directory
63 a/b: untracked file conflicts with directory
56 abort: untracked files in working directory differ from files in requested revision
64 abort: untracked files in working directory differ from files in requested revision
@@ -59,8 +67,10 b' Update - local symlink conflicts with re'
59 a/b: replacing untracked file
67 a/b: replacing untracked file
60 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
68 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
61 (activating bookmark dir)
69 (activating bookmark dir)
70 #if symlink
62 $ readlink.py a/b.orig
71 $ readlink.py a/b.orig
63 a/b.orig -> x
72 a/b.orig -> x
73 #endif
64 $ rm a/b.orig
74 $ rm a/b.orig
65
75
66 Update - local directory conflicts with remote file
76 Update - local directory conflicts with remote file
@@ -94,8 +104,10 b' Update - local directory conflicts with '
94 a/b: replacing untracked files in directory
104 a/b: replacing untracked files in directory
95 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
105 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
96 (activating bookmark link)
106 (activating bookmark link)
107 #if symlink
97 $ readlink.py a/b
108 $ readlink.py a/b
98 a/b -> c
109 a/b -> c
110 #endif
99 $ test -d a/b.orig
111 $ test -d a/b.orig
100 $ rm -rf a/b.orig
112 $ rm -rf a/b.orig
101
113
General Comments 0
You need to be logged in to leave comments. Login now