Patchwork D3365: commands: drop spurious r'' on dry_run in forget

login
register
mail settings
Submitter phabricator
Date April 14, 2018, 4:42 a.m.
Message ID <differential-rev-PHID-DREV-tqoe2pbxdyckblt57s7m-req@phab.mercurial-scm.org>
Download mbox | patch
Permalink /patch/30989/
State Superseded
Headers show

Comments

phabricator - April 14, 2018, 4:42 a.m.
durin42 created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  Fixes test-add.t on Python 3.

REPOSITORY
  rHG Mercurial

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

AFFECTED FILES
  mercurial/commands.py

CHANGE DETAILS




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

Patch

diff --git a/mercurial/commands.py b/mercurial/commands.py
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -2090,7 +2090,7 @@ 
         raise error.Abort(_('no files specified'))
 
     m = scmutil.match(repo[None], pats, opts)
-    dryrun = opts.get(r'dry_run')
+    dryrun = opts.get('dry_run')
     rejected = cmdutil.forget(ui, repo, m, prefix="",
                               explicitonly=False, dryrun=dryrun)[0]
     return rejected and 1 or 0