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

login
register
mail settings
Submitter Augie Fackler
Date March 12, 2017, 7:49 p.m.
Message ID <82cbf9cd26c318c4f3ef.1489348191@augie-macbookair2.roam.corp.google.com>
Download mbox | patch
Permalink /patch/19221/
State Accepted
Headers show

Comments

Augie Fackler - March 12, 2017, 7:49 p.m.
# HG changeset patch
# User Augie Fackler <augie@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

Patch

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'):