comparison tests/test-transplant.t @ 13789:7e5031180c0f

transplant: fix crash if filter script munges log file This fixes an UnboundLocalError crash if the filter script removes the 'User' or 'Date' lines from the log file.
author Luke Plant <L.Plant.98@cantab.net>
date Mon, 28 Mar 2011 21:17:32 +0100
parents 65399579da68
children c0ed76b5056d
comparison
equal deleted inserted replaced
13788:307c72686eb0 13789:7e5031180c0f
361 0 r1 361 0 r1
362 Transplant by test 362 Transplant by test
363 Transplant from rev 17ab29e464c6ca53e329470efe2a9918ac617a6f 363 Transplant from rev 17ab29e464c6ca53e329470efe2a9918ac617a6f
364 $ cd .. 364 $ cd ..
365 365
366 test transplant with filter handles invalid changelog
367
368 $ hg init filter-invalid-log
369 $ cd filter-invalid-log
370 $ cat <<'EOF' >test-filter-invalid-log
371 > #!/bin/sh
372 > echo "" > $1
373 > EOF
374 $ chmod +x test-filter-invalid-log
375 $ hg transplant -s ../t --filter ./test-filter-invalid-log 0
376 filtering * (glob)
377 abort: filter failed
378 [255]
366 379
367 test with a win32ext like setup (differing EOLs) 380 test with a win32ext like setup (differing EOLs)
368 381
369 $ hg init twin1 382 $ hg init twin1
370 $ cd twin1 383 $ cd twin1