comparison hgext/strip.py @ 29205:a0939666b836

py3: move up symbol imports to enforce import-checker rules Since (b) is banned, we should do the same for (a) for consistency. a) from mercurial import hg from mercurial.i18n import _ b) from . import hg from .i18n import _
author Yuya Nishihara <yuya@tcha.org>
date Sat, 14 May 2016 14:03:12 +0900
parents 81ad683278b8
children d5883fd055c6
comparison
equal deleted inserted replaced
29204:ce2d81aafbae 29205:a0939666b836
3 This extension allows you to strip changesets and all their descendants from the 3 This extension allows you to strip changesets and all their descendants from the
4 repository. See the command help for details. 4 repository. See the command help for details.
5 """ 5 """
6 from __future__ import absolute_import 6 from __future__ import absolute_import
7 7
8 from mercurial.i18n import _
8 from mercurial import ( 9 from mercurial import (
9 bookmarks as bookmarksmod, 10 bookmarks as bookmarksmod,
10 cmdutil, 11 cmdutil,
11 error, 12 error,
12 hg, 13 hg,
15 node as nodemod, 16 node as nodemod,
16 repair, 17 repair,
17 scmutil, 18 scmutil,
18 util, 19 util,
19 ) 20 )
20 from mercurial.i18n import _
21 nullid = nodemod.nullid 21 nullid = nodemod.nullid
22 release = lockmod.release 22 release = lockmod.release
23 23
24 cmdtable = {} 24 cmdtable = {}
25 command = cmdutil.command(cmdtable) 25 command = cmdutil.command(cmdtable)