Mercurial > hg
comparison hgext/censor.py @ 28092:5166b7a84b72
censor: use absolute_import
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Tue, 09 Feb 2016 17:33:10 -0800 |
parents | 525d9b3f0a31 |
children | d5883fd055c6 |
comparison
equal
deleted
inserted
replaced
28091:2f0384242b35 | 28092:5166b7a84b72 |
---|---|
23 ``hg update``, must be capable of tolerating censored data to continue to | 23 ``hg update``, must be capable of tolerating censored data to continue to |
24 function in a meaningful way. Such commands only tolerate censored file | 24 function in a meaningful way. Such commands only tolerate censored file |
25 revisions if they are allowed by the "censor.policy=ignore" config option. | 25 revisions if they are allowed by the "censor.policy=ignore" config option. |
26 """ | 26 """ |
27 | 27 |
28 from __future__ import absolute_import | |
29 | |
30 from mercurial.i18n import _ | |
28 from mercurial.node import short | 31 from mercurial.node import short |
29 from mercurial import cmdutil, error, filelog, revlog, scmutil, util | 32 |
30 from mercurial.i18n import _ | 33 from mercurial import ( |
31 from mercurial import lock as lockmod | 34 cmdutil, |
35 error, | |
36 filelog, | |
37 lock as lockmod, | |
38 revlog, | |
39 scmutil, | |
40 util, | |
41 ) | |
32 | 42 |
33 cmdtable = {} | 43 cmdtable = {} |
34 command = cmdutil.command(cmdtable) | 44 command = cmdutil.command(cmdtable) |
35 # Note for extension authors: ONLY specify testedwith = 'internal' for | 45 # Note for extension authors: ONLY specify testedwith = 'internal' for |
36 # extensions which SHIP WITH MERCURIAL. Non-mainline extensions should | 46 # extensions which SHIP WITH MERCURIAL. Non-mainline extensions should |