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