Show More
@@ -183,6 +183,8 b' def debugbuilddag(ui, repo, text=None,' | |||
|
183 | 183 | tags = [] |
|
184 | 184 | |
|
185 | 185 | wlock = lock = tr = None |
|
186 | progress = ui.makeprogress(_('building'), unit=_('revisions'), | |
|
187 | total=total) | |
|
186 | 188 | try: |
|
187 | 189 | wlock = repo.wlock() |
|
188 | 190 | lock = repo.lock() |
@@ -192,7 +194,7 b' def debugbuilddag(ui, repo, text=None,' | |||
|
192 | 194 | atbranch = 'default' |
|
193 | 195 | nodeids = [] |
|
194 | 196 | id = 0 |
|
195 | ui.progress(_('building'), id, unit=_('revisions'), total=total) | |
|
197 | progress.update(id) | |
|
196 | 198 | for type, data in dagparser.parsedag(text): |
|
197 | 199 | if type == 'n': |
|
198 | 200 | ui.note(('node %s\n' % pycompat.bytestr(data))) |
@@ -265,13 +267,13 b' def debugbuilddag(ui, repo, text=None,' | |||
|
265 | 267 | elif type == 'a': |
|
266 | 268 | ui.note(('branch %s\n' % data)) |
|
267 | 269 | atbranch = data |
|
268 | ui.progress(_('building'), id, unit=_('revisions'), total=total) | |
|
270 | progress.update(id) | |
|
269 | 271 | tr.close() |
|
270 | 272 | |
|
271 | 273 | if tags: |
|
272 | 274 | repo.vfs.write("localtags", "".join(tags)) |
|
273 | 275 | finally: |
|
274 | ui.progress(_('building'), None) | |
|
276 | progress.complete() | |
|
275 | 277 | release(tr, lock, wlock) |
|
276 | 278 | |
|
277 | 279 | def _debugchangegroup(ui, gen, all=None, indent=0, **opts): |
General Comments 0
You need to be logged in to leave comments.
Login now