Mercurial > public > mercurial-scm > hg
comparison hgext/uncommit.py @ 47012:d55b71393907
node: replace nullid and friends with nodeconstants class
The introduction of 256bit hashes require changes to nullid and other
constant magic values. Start pushing them down from repository and
revlog where sensible.
Differential Revision: https://phab.mercurial-scm.org/D9465
author | Joerg Sonnenberger <joerg@bec.de> |
---|---|
date | Mon, 29 Mar 2021 01:52:06 +0200 |
parents | 0e2becd1fe0c |
children | 54849b65dc5f |
comparison
equal
deleted
inserted
replaced
46992:5fa019ceb499 | 47012:d55b71393907 |
---|---|
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 | |
24 | 23 |
25 from mercurial import ( | 24 from mercurial import ( |
26 cmdutil, | 25 cmdutil, |
27 commands, | 26 commands, |
28 context, | 27 context, |
111 if not date: | 110 if not date: |
112 date = ctx.date() | 111 date = ctx.date() |
113 | 112 |
114 new = context.memctx( | 113 new = context.memctx( |
115 repo, | 114 repo, |
116 parents=[base.node(), nullid], | 115 parents=[base.node(), repo.nullid], |
117 text=message, | 116 text=message, |
118 files=files, | 117 files=files, |
119 filectxfn=filectxfn, | 118 filectxfn=filectxfn, |
120 user=user, | 119 user=user, |
121 date=date, | 120 date=date, |