D4449: py3: add r'' prefix to prevent b'' being prepended

pulkit (Pulkit Goyal) phabricator at mercurial-scm.org
Mon Sep 3 08:02:05 EDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rHGb3572f733dbd: py3: add r'' prefix to prevent b'' being prepended (authored by pulkit, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D4449?vs=10718&id=10723

REVISION DETAIL
  https://phab.mercurial-scm.org/D4449

AFFECTED FILES
  hgext/fastannotate/commands.py

CHANGE DETAILS

diff --git a/hgext/fastannotate/commands.py b/hgext/fastannotate/commands.py
--- a/hgext/fastannotate/commands.py
+++ b/hgext/fastannotate/commands.py
@@ -70,7 +70,7 @@
             yield p
 
 fastannotatecommandargs = {
-    'options': [
+    r'options': [
         ('r', 'rev', '.', _('annotate the specified revision'), _('REV')),
         ('u', 'user', None, _('list the author (long with -v)')),
         ('f', 'file', None, _('list the filename')),
@@ -88,8 +88,8 @@
         ('', 'rebuild', None, _('rebuild cache even if it exists '
                                 '(EXPERIMENTAL)')),
     ] + commands.diffwsopts + commands.walkopts + commands.formatteropts,
-    'synopsis': _('[-r REV] [-f] [-a] [-u] [-d] [-n] [-c] [-l] FILE...'),
-    'inferrepo': True,
+    r'synopsis': _('[-r REV] [-f] [-a] [-u] [-d] [-n] [-c] [-l] FILE...'),
+    r'inferrepo': True,
 }
 
 def fastannotate(ui, repo, *pats, **opts):
@@ -197,7 +197,7 @@
 
 _newopts = set([])
 _knownopts = set([opt[1].replace('-', '_') for opt in
-                  (fastannotatecommandargs['options'] + commands.globalopts)])
+                  (fastannotatecommandargs[r'options'] + commands.globalopts)])
 
 def _annotatewrapper(orig, ui, repo, *pats, **opts):
     """used by wrapdefault"""



To: pulkit, #hg-reviewers
Cc: mercurial-devel


More information about the Mercurial-devel mailing list