##// END OF EJS Templates
test-extdiff: narrow the range of an '#if execbit' block...
Matt Harbison -
r32210:f41cc3dd default
parent child Browse files
Show More
@@ -215,14 +215,15 b' Empty argument must be quoted'
215 running 'echo --L1 "@0" --L2 "" a.8a5febb7f867 a' in * (glob) (windows !)
215 running 'echo --L1 "@0" --L2 "" a.8a5febb7f867 a' in * (glob) (windows !)
216 running "echo --L1 '@0' --L2 '' a.8a5febb7f867 a" in * (glob) (no-windows !)
216 running "echo --L1 '@0' --L2 '' a.8a5febb7f867 a" in * (glob) (no-windows !)
217
217
218 #if execbit
219
218
220 Test extdiff of multiple files in tmp dir:
219 Test extdiff of multiple files in tmp dir:
221
220
222 $ hg update -C 0 > /dev/null
221 $ hg update -C 0 > /dev/null
223 $ echo changed > a
222 $ echo changed > a
224 $ echo changed > b
223 $ echo changed > b
224 #if execbit
225 $ chmod +x b
225 $ chmod +x b
226 #endif
226
227
227 Diff in working directory, before:
228 Diff in working directory, before:
228
229
@@ -234,8 +235,8 b' Diff in working directory, before:'
234 -a
235 -a
235 +changed
236 +changed
236 diff --git a/b b/b
237 diff --git a/b b/b
237 old mode 100644
238 old mode 100644 (execbit !)
238 new mode 100755
239 new mode 100755 (execbit !)
239 --- a/b
240 --- a/b
240 +++ b/b
241 +++ b/b
241 @@ -1,1 +1,1 @@
242 @@ -1,1 +1,1 @@
@@ -255,7 +256,9 b' Prepare custom diff/edit tool:'
255 > file('a/b', 'ab').write('edited\n')
256 > file('a/b', 'ab').write('edited\n')
256 > EOT
257 > EOT
257
258
259 #if execbit
258 $ chmod +x 'diff tool.py'
260 $ chmod +x 'diff tool.py'
261 #endif
259
262
260 will change to /tmp/extdiff.TMP and populate directories a.TMP and a
263 will change to /tmp/extdiff.TMP and populate directories a.TMP and a
261 and start tool
264 and start tool
@@ -274,8 +277,8 b' Diff in working directory, after:'
274 +changed
277 +changed
275 +edited
278 +edited
276 diff --git a/b b/b
279 diff --git a/b b/b
277 old mode 100644
280 old mode 100644 (execbit !)
278 new mode 100755
281 new mode 100755 (execbit !)
279 --- a/b
282 --- a/b
280 +++ b/b
283 +++ b/b
281 @@ -1,1 +1,2 @@
284 @@ -1,1 +1,2 @@
@@ -286,31 +289,37 b' Diff in working directory, after:'
286 Test extdiff with --option:
289 Test extdiff with --option:
287
290
288 $ hg extdiff -p echo -o this -c 1
291 $ hg extdiff -p echo -o this -c 1
289 this */extdiff.*/a.8a5febb7f867/a a.34eed99112ab/a (glob)
292 this "*\\a.8a5febb7f867\\a" "a.34eed99112ab\\a" (glob) (windows !)
293 this */extdiff.*/a.8a5febb7f867/a a.34eed99112ab/a (glob) (no-windows !)
290 [1]
294 [1]
291
295
292 $ hg falabala -o this -c 1
296 $ hg falabala -o this -c 1
293 diffing this */extdiff.*/a.8a5febb7f867/a a.34eed99112ab/a (glob)
297 diffing this "*\\a.8a5febb7f867\\a" "a.34eed99112ab\\a" (glob) (windows !)
298 diffing this */extdiff.*/a.8a5febb7f867/a a.34eed99112ab/a (glob) (no-windows !)
294 [1]
299 [1]
295
300
296 Test extdiff's handling of options with spaces in them:
301 Test extdiff's handling of options with spaces in them:
297
302
298 $ hg edspace -c 1
303 $ hg edspace -c 1
299 name <user@example.com> */extdiff.*/a.8a5febb7f867/a a.34eed99112ab/a (glob)
304 "name <user@example.com>" "*\\a.8a5febb7f867\\a" "a.34eed99112ab\\a" (glob) (windows !)
305 name <user@example.com> */extdiff.*/a.8a5febb7f867/a a.34eed99112ab/a (glob) (no-windows !)
300 [1]
306 [1]
301
307
302 $ hg extdiff -p echo -o "name <user@example.com>" -c 1
308 $ hg extdiff -p echo -o "name <user@example.com>" -c 1
303 name <user@example.com> */extdiff.*/a.8a5febb7f867/a a.34eed99112ab/a (glob)
309 "name <user@example.com>" "*\\a.8a5febb7f867\\a" "a.34eed99112ab\\a" (glob) (windows !)
310 name <user@example.com> */extdiff.*/a.8a5febb7f867/a a.34eed99112ab/a (glob) (no-windows !)
304 [1]
311 [1]
305
312
306 Test with revsets:
313 Test with revsets:
307
314
308 $ hg extdif -p echo -c "rev(1)"
315 $ hg extdif -p echo -c "rev(1)"
309 */extdiff.*/a.8a5febb7f867/a a.34eed99112ab/a (glob)
316 "*\\a.8a5febb7f867\\a" "a.34eed99112ab\\a" (glob) (windows !)
317 */extdiff.*/a.8a5febb7f867/a a.34eed99112ab/a (glob) (no-windows !)
310 [1]
318 [1]
311
319
312 $ hg extdif -p echo -r "0::1"
320 $ hg extdif -p echo -r "0::1"
313 */extdiff.*/a.8a5febb7f867/a a.34eed99112ab/a (glob)
321 "*\\a.8a5febb7f867\\a" "a.34eed99112ab\\a" (glob) (windows !)
322 */extdiff.*/a.8a5febb7f867/a a.34eed99112ab/a (glob) (no-windows !)
314 [1]
323 [1]
315
324
316 Fallback to merge-tools.tool.executable|regkey
325 Fallback to merge-tools.tool.executable|regkey
@@ -319,8 +328,14 b' Fallback to merge-tools.tool.executable|'
319 > #!/bin/sh
328 > #!/bin/sh
320 > echo "** custom diff **"
329 > echo "** custom diff **"
321 > EOF
330 > EOF
331 #if execbit
322 $ chmod +x dir/tool.sh
332 $ chmod +x dir/tool.sh
333 #endif
323 $ tool=`pwd`/dir/tool.sh
334 $ tool=`pwd`/dir/tool.sh
335
336 TODO: Fix this on Windows. It currently tries to run 'tl a.* a', instead of
337 falling back to tool.sh
338 #if no-windows
324 $ hg --debug tl --config extdiff.tl= --config merge-tools.tl.executable=$tool
339 $ hg --debug tl --config extdiff.tl= --config merge-tools.tl.executable=$tool
325 making snapshot of 2 files from rev * (glob)
340 making snapshot of 2 files from rev * (glob)
326 a
341 a
@@ -332,11 +347,10 b' Fallback to merge-tools.tool.executable|'
332 ** custom diff **
347 ** custom diff **
333 cleaning up temp directory
348 cleaning up temp directory
334 [1]
349 [1]
350 #endif
335
351
336 $ cd ..
352 $ cd ..
337
353
338 #endif
339
340 #if symlink
354 #if symlink
341
355
342 Test symlinks handling (issue1909)
356 Test symlinks handling (issue1909)
General Comments 0
You need to be logged in to leave comments. Login now