changeset 31372:d0014d2d7645

files: use native string type to load rev opt from dict
author Augie Fackler <augie@google.com>
date Sun, 12 Mar 2017 00:51:00 -0500
parents 50cd81346ad4
children 91874c247d61
files mercurial/commands.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/commands.py	Sun Mar 12 00:50:44 2017 -0500
+++ b/mercurial/commands.py	Sun Mar 12 00:51:00 2017 -0500
@@ -2083,7 +2083,7 @@
     Returns 0 if a match is found, 1 otherwise.
 
     """
-    ctx = scmutil.revsingle(repo, opts.get('rev'), None)
+    ctx = scmutil.revsingle(repo, opts.get(r'rev'), None)
 
     end = '\n'
     if opts.get('print0'):