equal
deleted
inserted
replaced
12 from mercurial.i18n import _ |
12 from mercurial.i18n import _ |
13 from mercurial import ( |
13 from mercurial import ( |
14 error, |
14 error, |
15 util, |
15 util, |
16 ) |
16 ) |
17 from mercurial.utils import dateutil |
17 from mercurial.utils import ( |
|
18 dateutil, |
|
19 stringutil, |
|
20 ) |
18 |
21 |
19 from . import common |
22 from . import common |
20 |
23 |
21 def loaditer(f): |
24 def loaditer(f): |
22 "Yield the dictionary objects generated by p4" |
25 "Yield the dictionary objects generated by p4" |
167 shortdesc = descarr[0].rstrip('\r\n') |
170 shortdesc = descarr[0].rstrip('\r\n') |
168 else: |
171 else: |
169 shortdesc = '**empty changelist description**' |
172 shortdesc = '**empty changelist description**' |
170 |
173 |
171 t = '%s %s' % (c.rev, repr(shortdesc)[1:-1]) |
174 t = '%s %s' % (c.rev, repr(shortdesc)[1:-1]) |
172 ui.status(util.ellipsis(t, 80) + '\n') |
175 ui.status(stringutil.ellipsis(t, 80) + '\n') |
173 |
176 |
174 files = [] |
177 files = [] |
175 copies = {} |
178 copies = {} |
176 copiedfiles = [] |
179 copiedfiles = [] |
177 i = 0 |
180 i = 0 |