comparison hgext/uncommit.py @ 46113:59fa3890d40a

node: import symbols explicitly There is no point in lazy importing mercurial.node, it is used all over the place anyway. So consistently import the used symbols directly. Fix one file using symbols indirectly via mercurial.revlog. Differential Revision: https://phab.mercurial-scm.org/D9480
author Joerg Sonnenberger <joerg@bec.de>
date Tue, 01 Dec 2020 21:54:46 +0100
parents 89a2afe31e82
children 0e2becd1fe0c
comparison
equal deleted inserted replaced
46112:d6afa9c149c3 46113:59fa3890d40a
18 """ 18 """
19 19
20 from __future__ import absolute_import 20 from __future__ import absolute_import
21 21
22 from mercurial.i18n import _ 22 from mercurial.i18n import _
23 from mercurial.node import nullid
23 24
24 from mercurial import ( 25 from mercurial import (
25 cmdutil, 26 cmdutil,
26 commands, 27 commands,
27 context, 28 context,
28 copies as copiesmod, 29 copies as copiesmod,
29 error, 30 error,
30 node,
31 obsutil, 31 obsutil,
32 pathutil, 32 pathutil,
33 pycompat, 33 pycompat,
34 registrar, 34 registrar,
35 rewriteutil, 35 rewriteutil,
111 if not date: 111 if not date:
112 date = ctx.date() 112 date = ctx.date()
113 113
114 new = context.memctx( 114 new = context.memctx(
115 repo, 115 repo,
116 parents=[base.node(), node.nullid], 116 parents=[base.node(), nullid],
117 text=message, 117 text=message,
118 files=files, 118 files=files,
119 filectxfn=filectxfn, 119 filectxfn=filectxfn,
120 user=user, 120 user=user,
121 date=date, 121 date=date,