diff -r 470df8c5b781 -r c6901665cd5b mercurial/context.py --- a/mercurial/context.py Sun Mar 04 22:40:08 2018 +0530 +++ b/mercurial/context.py Sun Mar 04 22:40:33 2018 +0530 @@ -748,7 +748,7 @@ __str__ = encoding.strmethod(__bytes__) def __repr__(self): - return "<%s %s>" % (type(self).__name__, str(self)) + return r"<%s %s>" % (type(self).__name__, str(self)) def __hash__(self): try: