Patchwork D1725: githelp: remove reference to tweakdefaults

login
register
mail settings
Submitter phabricator
Date Jan. 18, 2018, 7:58 p.m.
Message ID <6c1e12d4032b9d2cb705d1c9c35c2793@localhost.localdomain>
Download mbox | patch
Permalink /patch/26924/
State Not Applicable
Headers show

Comments

phabricator - Jan. 18, 2018, 7:58 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG5edfead8cc95: githelp: remove reference to tweakdefaults (authored by indygreg, committed by ).

CHANGED PRIOR TO COMMIT
  https://phab.mercurial-scm.org/D1725?vs=4593&id=4921#toc

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D1725?vs=4593&id=4921

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

AFFECTED FILES
  hgext/githelp.py

CHANGE DETAILS




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

Patch

diff --git a/hgext/githelp.py b/hgext/githelp.py
--- a/hgext/githelp.py
+++ b/hgext/githelp.py
@@ -23,7 +23,6 @@ 
 from mercurial.i18n import _
 from mercurial import (
     error,
-    extensions,
     fancyopts,
     registrar,
     util,
@@ -197,13 +196,7 @@ 
     cmdoptions = [
     ]
     args, opts = parseoptions(ui, cmdoptions, args)
-    try:
-        # If tweakdefaults is enabled then we have access to -p, which adds
-        # Phabricator diff ID
-        extensions.find('tweakdefaults')
-        cmd = Command('annotate -pudl')
-    except KeyError:
-        cmd = Command('annotate -udl')
+    cmd = Command('annotate -udl')
     cmd.extend([convert(v) for v in args])
     ui.status((str(cmd)), "\n")