Show More
@@ -100,7 +100,8 b' def snapshot(ui, repo, files, node, tmpr' | |||||
100 | if 'x' in fctx.flags(): |
|
100 | if 'x' in fctx.flags(): | |
101 | util.set_flags(dest, False, True) |
|
101 | util.set_flags(dest, False, True) | |
102 | if node is None: |
|
102 | if node is None: | |
103 |
fns_and_mtime.append((dest, repo.wjoin(fn), |
|
103 | fns_and_mtime.append((dest, repo.wjoin(fn), | |
|
104 | os.lstat(dest).st_mtime)) | |||
104 | return dirname, fns_and_mtime |
|
105 | return dirname, fns_and_mtime | |
105 |
|
106 | |||
106 | def dodiff(ui, repo, diffcmd, diffopts, pats, opts): |
|
107 | def dodiff(ui, repo, diffcmd, diffopts, pats, opts): | |
@@ -222,7 +223,7 b' def dodiff(ui, repo, diffcmd, diffopts, ' | |||||
222 | util.system(cmdline, cwd=tmproot) |
|
223 | util.system(cmdline, cwd=tmproot) | |
223 |
|
224 | |||
224 | for copy_fn, working_fn, mtime in fns_and_mtime: |
|
225 | for copy_fn, working_fn, mtime in fns_and_mtime: | |
225 |
if os. |
|
226 | if os.lstat(copy_fn).st_mtime != mtime: | |
226 | ui.debug('file changed while diffing. ' |
|
227 | ui.debug('file changed while diffing. ' | |
227 | 'Overwriting: %s (src: %s)\n' % (working_fn, copy_fn)) |
|
228 | 'Overwriting: %s (src: %s)\n' % (working_fn, copy_fn)) | |
228 | util.copyfile(copy_fn, working_fn) |
|
229 | util.copyfile(copy_fn, working_fn) |
@@ -177,3 +177,20 b' Test with revsets:' | |||||
177 | $ hg extdif -p echo -r "0::1" |
|
177 | $ hg extdif -p echo -r "0::1" | |
178 | */extdiff.*/a.8a5febb7f867/a a.34eed99112ab/a (glob) |
|
178 | */extdiff.*/a.8a5febb7f867/a a.34eed99112ab/a (glob) | |
179 | [1] |
|
179 | [1] | |
|
180 | ||||
|
181 | $ cd .. | |||
|
182 | ||||
|
183 | Test symlinks handling (issue1909) | |||
|
184 | ||||
|
185 | $ hg init testsymlinks | |||
|
186 | $ cd testsymlinks | |||
|
187 | $ echo a > a | |||
|
188 | $ hg ci -Am adda | |||
|
189 | adding a | |||
|
190 | $ echo a >> a | |||
|
191 | $ ln -s missing linka | |||
|
192 | $ hg add linka | |||
|
193 | $ hg falabala -r 0 --traceback | |||
|
194 | diffing testsymlinks.07f494440405 testsymlinks | |||
|
195 | [1] | |||
|
196 | $ cd .. |
@@ -17,7 +17,7 b' url for proxy, stream' | |||||
17 | $ http_proxy=http://localhost:$HGPORT1/ hg --config http_proxy.always=True clone --uncompressed http://localhost:$HGPORT/ b |
|
17 | $ http_proxy=http://localhost:$HGPORT1/ hg --config http_proxy.always=True clone --uncompressed http://localhost:$HGPORT/ b | |
18 | streaming all changes |
|
18 | streaming all changes | |
19 | 3 files to transfer, 303 bytes of data |
|
19 | 3 files to transfer, 303 bytes of data | |
20 |
transferred * bytes in * seconds (* |
|
20 | transferred * bytes in * seconds (*/sec) (glob) | |
21 | updating to branch default |
|
21 | updating to branch default | |
22 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
22 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
23 | $ cd b |
|
23 | $ cd b |
@@ -27,7 +27,7 b' clone via stream' | |||||
27 | $ hg clone --uncompressed http://localhost:$HGPORT/ copy 2>&1 |
|
27 | $ hg clone --uncompressed http://localhost:$HGPORT/ copy 2>&1 | |
28 | streaming all changes |
|
28 | streaming all changes | |
29 | 6 files to transfer, 606 bytes of data |
|
29 | 6 files to transfer, 606 bytes of data | |
30 |
transferred * bytes in * seconds (* |
|
30 | transferred * bytes in * seconds (*/sec) (glob) | |
31 | updating to branch default |
|
31 | updating to branch default | |
32 | 4 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
32 | 4 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
33 | $ hg verify -R copy |
|
33 | $ hg verify -R copy |
General Comments 0
You need to be logged in to leave comments.
Login now