githelp: remove reference to tweakdefaults
authorGregory Szorc <gregory.szorc@gmail.com>
Mon, 18 Dec 2017 20:56:01 -0800
changeset 35717 5edfead8cc95
parent 35716 05b8adf38c55
child 35718 a10a0d5561a9
githelp: remove reference to tweakdefaults This is a Facebook-ism. Differential Revision: https://phab.mercurial-scm.org/D1725
hgext/githelp.py
--- a/hgext/githelp.py	Fri Dec 22 18:38:29 2017 -0700
+++ b/hgext/githelp.py	Mon Dec 18 20:56:01 2017 -0800
@@ -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")