# HG changeset patch # User Kevin Bullock # Date 2012-11-15 17:27:30 # 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 --git a/mercurial/commands.py b/mercurial/commands.py --- a/mercurial/commands.py +++ b/mercurial/commands.py @@ -2935,7 +2935,7 @@ def grep(ui, repo, pattern, *pats, **opt 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