[PATCH 02 of 12 py3] files: use native string type to load rev opt from dict

Augie Fackler raf at durin42.com
Sun Mar 12 15:49:51 EDT 2017


# HG changeset patch
# User Augie Fackler <augie at google.com>
# Date 1489297860 18000
#      Sun Mar 12 00:51:00 2017 -0500
# Node ID 82cbf9cd26c318c4f3efa2e01d32f226c492cd11
# Parent  90b52b8ab62de4417fe13b06e52e9ff312bb30f9
files: use native string type to load rev opt from dict

diff --git a/mercurial/commands.py b/mercurial/commands.py
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -2083,7 +2083,7 @@ def files(ui, repo, *pats, **opts):
     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'):


More information about the Mercurial-devel mailing list