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