# HG changeset patch # User Augie Fackler # Date 1533870764 14400 # Node ID 2525c4943c0968b1963f4ec7bc7faa0f9c13696d # Parent f76c1343859dc3af1c34df8f62dd2bc95a8ed98a grep: difflib sequencematcher opcodes are native strs Differential Revision: https://phab.mercurial-scm.org/D4237 diff -r f76c1343859d -r 2525c4943c09 mercurial/commands.py --- a/mercurial/commands.py Thu Aug 09 21:59:32 2018 -0400 +++ b/mercurial/commands.py Thu Aug 09 23:12:44 2018 -0400 @@ -2608,13 +2608,13 @@ def difflinestates(a, b): sm = difflib.SequenceMatcher(None, a, b) for tag, alo, ahi, blo, bhi in sm.get_opcodes(): - if tag == 'insert': + if tag == r'insert': for i in pycompat.xrange(blo, bhi): yield ('+', b[i]) - elif tag == 'delete': + elif tag == r'delete': for i in pycompat.xrange(alo, ahi): yield ('-', a[i]) - elif tag == 'replace': + elif tag == r'replace': for i in pycompat.xrange(alo, ahi): yield ('-', a[i]) for i in pycompat.xrange(blo, bhi):