##// END OF EJS Templates
revlog: stop exporting node.short
Matt Mackall -
r14393:bdf44e63 default
parent child Browse files
Show More
@@ -15,6 +15,7 b' map from a changeset hash to its hash in'
15 15
16 16 from mercurial.i18n import _
17 17 import os, tempfile
18 from mercurial.node import short
18 19 from mercurial import bundlerepo, hg, merge, match
19 20 from mercurial import patch, revlog, scmutil, util, error, cmdutil
20 21 from mercurial import revset, templatekw
@@ -110,7 +111,7 b' class transplanter(object):'
110 111 lock = repo.lock()
111 112 for rev in revs:
112 113 node = revmap[rev]
113 revstr = '%s:%s' % (rev, revlog.short(node))
114 revstr = '%s:%s' % (rev, short(node))
114 115
115 116 if self.applied(repo, node, p1):
116 117 self.ui.warn(_('skipping already applied revision %s\n') %
@@ -143,7 +144,7 b' class transplanter(object):'
143 144
144 145 if parents[1] != revlog.nullid:
145 146 self.ui.note(_('skipping merge changeset %s:%s\n')
146 % (rev, revlog.short(node)))
147 % (rev, short(node)))
147 148 patchfile = None
148 149 else:
149 150 fd, patchfile = tempfile.mkstemp(prefix='hg-transplant-')
@@ -163,11 +164,11 b' class transplanter(object):'
163 164 filter=opts.get('filter'))
164 165 if n and domerge:
165 166 self.ui.status(_('%s merged at %s\n') % (revstr,
166 revlog.short(n)))
167 short(n)))
167 168 elif n:
168 169 self.ui.status(_('%s transplanted to %s\n')
169 % (revlog.short(node),
170 revlog.short(n)))
170 % (short(node),
171 short(n)))
171 172 finally:
172 173 if patchfile:
173 174 os.unlink(patchfile)
@@ -219,7 +220,7 b' class transplanter(object):'
219 220 # we don't translate messages inserted into commits
220 221 message += '\n(transplanted from %s)' % revlog.hex(node)
221 222
222 self.ui.status(_('applying %s\n') % revlog.short(node))
223 self.ui.status(_('applying %s\n') % short(node))
223 224 self.ui.note('%s %s\n%s\n' % (user, date, message))
224 225
225 226 if not patchfile and not merge:
@@ -270,8 +271,8 b' class transplanter(object):'
270 271 '''recover last transaction and apply remaining changesets'''
271 272 if os.path.exists(os.path.join(self.path, 'journal')):
272 273 n, node = self.recover(repo)
273 self.ui.status(_('%s transplanted as %s\n') % (revlog.short(node),
274 revlog.short(n)))
274 self.ui.status(_('%s transplanted as %s\n') % (short(node),
275 short(n)))
275 276 seriespath = os.path.join(self.path, 'series')
276 277 if not os.path.exists(seriespath):
277 278 self.transplants.write()
@@ -12,7 +12,7 b' and O(changes) merge between branches.'
12 12 """
13 13
14 14 # import stuff from node for others to import from revlog
15 from node import bin, hex, nullid, nullrev, short #@UnusedImport
15 from node import bin, hex, nullid, nullrev
16 16 from i18n import _
17 17 import ancestor, mdiff, parsers, error, util, dagutil
18 18 import struct, zlib, errno
@@ -6,7 +6,6 b''
6 6 mercurial/commands.py:*: 'bdiff' imported but unused (glob)
7 7 mercurial/commands.py:*: 'mpatch' imported but unused (glob)
8 8 mercurial/commands.py:*: 'osutil' imported but unused (glob)
9 mercurial/revlog.py:*: 'short' imported but unused (glob)
10 9 hgext/inotify/linux/__init__.py:*: 'from _inotify import *' used; unable to detect undefined names (glob)
11 10 mercurial/util.py:*: 'from posix import *' used; unable to detect undefined names (glob)
12 11 mercurial/windows.py:*: 'from win32 import *' used; unable to detect undefined names (glob)
General Comments 0
You need to be logged in to leave comments. Login now