# HG changeset patch # User Kevin Bullock # Date 1353000450 21600 # Node ID 407209261f6373b4b3f35e343d1498b63263d38e # Parent 35ba170c0f82dba18f0207ef4bd93216e6de8bbf grep: remove useless while condition A revised version of 35ba170c0f82 was sent to the list that fixed this , but the older version of the patch was applied. diff -r 35ba170c0f82 -r 407209261f63 mercurial/commands.py --- a/mercurial/commands.py Mon Nov 12 19:27:03 2012 +0200 +++ b/mercurial/commands.py Thu Nov 15 11:27:30 2012 -0600 @@ -2935,7 +2935,7 @@ def matchlines(body): begin = 0 linenum = 0 - while True and begin < len(body): + while begin < len(body): match = regexp.search(body, begin) if not match: break