Commits

Kevin Bullock  committed 4072092

grep: remove useless while condition

A revised version of 35ba170c0f82 was sent to the list that fixed this
<http://markmail.org/message/jmfuiise5igcyh2m>;, but the older version of
the patch was applied.

  • Participants
  • Parent commits 35ba170
  • Branches stable

Comments (0)

Files changed (1)

File mercurial/commands.py

     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