##// END OF EJS Templates
merge with stable
Thomas Arendsen Hein -
r14024:92b768e9 merge default
parent child Browse files
Show More
@@ -100,7 +100,8 b' def snapshot(ui, repo, files, node, tmpr'
100 100 if 'x' in fctx.flags():
101 101 util.set_flags(dest, False, True)
102 102 if node is None:
103 fns_and_mtime.append((dest, repo.wjoin(fn), os.path.getmtime(dest)))
103 fns_and_mtime.append((dest, repo.wjoin(fn),
104 os.lstat(dest).st_mtime))
104 105 return dirname, fns_and_mtime
105 106
106 107 def dodiff(ui, repo, diffcmd, diffopts, pats, opts):
@@ -222,7 +223,7 b' def dodiff(ui, repo, diffcmd, diffopts, '
222 223 util.system(cmdline, cwd=tmproot)
223 224
224 225 for copy_fn, working_fn, mtime in fns_and_mtime:
225 if os.path.getmtime(copy_fn) != mtime:
226 if os.lstat(copy_fn).st_mtime != mtime:
226 227 ui.debug('file changed while diffing. '
227 228 'Overwriting: %s (src: %s)\n' % (working_fn, copy_fn))
228 229 util.copyfile(copy_fn, working_fn)
@@ -177,3 +177,20 b' Test with revsets:'
177 177 $ hg extdif -p echo -r "0::1"
178 178 */extdiff.*/a.8a5febb7f867/a a.34eed99112ab/a (glob)
179 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 17 $ http_proxy=http://localhost:$HGPORT1/ hg --config http_proxy.always=True clone --uncompressed http://localhost:$HGPORT/ b
18 18 streaming all changes
19 19 3 files to transfer, 303 bytes of data
20 transferred * bytes in * seconds (*B/sec) (glob)
20 transferred * bytes in * seconds (*/sec) (glob)
21 21 updating to branch default
22 22 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
23 23 $ cd b
@@ -27,7 +27,7 b' clone via stream'
27 27 $ hg clone --uncompressed http://localhost:$HGPORT/ copy 2>&1
28 28 streaming all changes
29 29 6 files to transfer, 606 bytes of data
30 transferred * bytes in * seconds (*B/sec) (glob)
30 transferred * bytes in * seconds (*/sec) (glob)
31 31 updating to branch default
32 32 4 files updated, 0 files merged, 0 files removed, 0 files unresolved
33 33 $ hg verify -R copy
General Comments 0
You need to be logged in to leave comments. Login now