Mercurial > public > mercurial-scm > hg-stable
comparison hgext/githelp.py @ 35717:5edfead8cc95
githelp: remove reference to tweakdefaults
This is a Facebook-ism.
Differential Revision: https://phab.mercurial-scm.org/D1725
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Mon, 18 Dec 2017 20:56:01 -0800 |
parents | 05b8adf38c55 |
children | a10a0d5561a9 |
comparison
equal
deleted
inserted
replaced
35716:05b8adf38c55 | 35717:5edfead8cc95 |
---|---|
21 import re | 21 import re |
22 | 22 |
23 from mercurial.i18n import _ | 23 from mercurial.i18n import _ |
24 from mercurial import ( | 24 from mercurial import ( |
25 error, | 25 error, |
26 extensions, | |
27 fancyopts, | 26 fancyopts, |
28 registrar, | 27 registrar, |
29 util, | 28 util, |
30 ) | 29 ) |
31 | 30 |
195 | 194 |
196 def blame(ui, repo, *args, **kwargs): | 195 def blame(ui, repo, *args, **kwargs): |
197 cmdoptions = [ | 196 cmdoptions = [ |
198 ] | 197 ] |
199 args, opts = parseoptions(ui, cmdoptions, args) | 198 args, opts = parseoptions(ui, cmdoptions, args) |
200 try: | 199 cmd = Command('annotate -udl') |
201 # If tweakdefaults is enabled then we have access to -p, which adds | |
202 # Phabricator diff ID | |
203 extensions.find('tweakdefaults') | |
204 cmd = Command('annotate -pudl') | |
205 except KeyError: | |
206 cmd = Command('annotate -udl') | |
207 cmd.extend([convert(v) for v in args]) | 200 cmd.extend([convert(v) for v in args]) |
208 ui.status((str(cmd)), "\n") | 201 ui.status((str(cmd)), "\n") |
209 | 202 |
210 def branch(ui, repo, *args, **kwargs): | 203 def branch(ui, repo, *args, **kwargs): |
211 cmdoptions = [ | 204 cmdoptions = [ |