Mercurial > hg
diff 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 |
line wrap: on
line diff
--- a/tests/test-transplant.t Mon Mar 28 11:18:56 2011 -0500 +++ b/tests/test-transplant.t Mon Mar 28 21:17:32 2011 +0100 @@ -363,6 +363,19 @@ Transplant from rev 17ab29e464c6ca53e329470efe2a9918ac617a6f $ cd .. +test transplant with filter handles invalid changelog + + $ hg init filter-invalid-log + $ cd filter-invalid-log + $ cat <<'EOF' >test-filter-invalid-log + > #!/bin/sh + > echo "" > $1 + > EOF + $ chmod +x test-filter-invalid-log + $ hg transplant -s ../t --filter ./test-filter-invalid-log 0 + filtering * (glob) + abort: filter failed + [255] test with a win32ext like setup (differing EOLs)