Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/commands.py @ 1910:e2fe1953f417
changeset_templater: only compute manifest when --debug.
author | Vadim Gelfer <vadim.gelfer@gmail.com> |
---|---|
date | Mon, 27 Feb 2006 21:32:15 -0800 |
parents | 37b9f80a5fbb |
children | 74cf2b2f43d4 |
comparison
equal
deleted
inserted
replaced
1909:37b9f80a5fbb | 1910:e2fe1953f417 |
---|---|
428 plural='branches', **args): | 428 plural='branches', **args): |
429 yield x | 429 yield x |
430 else: | 430 else: |
431 showbranches = '' | 431 showbranches = '' |
432 | 432 |
433 def showmanifest(**args): | 433 if self.ui.debugflag: |
434 args = args.copy() | 434 def showmanifest(**args): |
435 args.update(rev=self.repo.manifest.rev(changes[0]), | 435 args = args.copy() |
436 node=hex(changes[0])) | 436 args.update(rev=self.repo.manifest.rev(changes[0]), |
437 yield self.t('manifest', **args) | 437 node=hex(changes[0])) |
438 yield self.t('manifest', **args) | |
439 else: | |
440 showmanifest = '' | |
438 | 441 |
439 def showparents(**args): | 442 def showparents(**args): |
440 parents = [[('rev', log.rev(p)), ('node', hex(p))] | 443 parents = [[('rev', log.rev(p)), ('node', hex(p))] |
441 for p in log.parents(changenode) | 444 for p in log.parents(changenode) |
442 if self.ui.debugflag or p != nullid] | 445 if self.ui.debugflag or p != nullid] |