# HG changeset patch # User Patrick Mezard # Date 1187187520 -7200 # Node ID ee702e7f181f743ae7b2131a36004876a19a0c07 # Parent 64888ff907f41e89818f58448d09323031329d63 test-grep: test issue 685 diff --git a/tests/test-grep b/tests/test-grep --- a/tests/test-grep +++ b/tests/test-grep @@ -52,3 +52,17 @@ echo blue >> color hg ci -m 3 -d '0 0' hg grep orange hg grep --all orange + +# Got a traceback when using grep on a single +# revision with renamed files. +cd .. +echo % issue 685 +hg init issue685 +cd issue685 +echo octarine > color +hg ci -Amcolor +hg rename color colour +Hg ci -Am rename +hg grep octarine +# Used to crash here +hg grep -r 1 octarine diff --git a/tests/test-grep.out b/tests/test-grep.out --- a/tests/test-grep.out +++ b/tests/test-grep.out @@ -32,3 +32,8 @@ color:3:orange color:3:+:orange color:2:-:orange color:1:+:orange +% issue 685 +adding color +color:0:octarine +colour:1:octarine +colour:1:octarine