Mercurial > hg
comparison mercurial/templater.py @ 3640:1b2cd5dceca2
changeset_templater: remove changes arg
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Mon, 13 Nov 2006 13:26:57 -0600 |
parents | 5c9a36210662 |
children | 54d27caf6a78 |
comparison
equal
deleted
inserted
replaced
3639:5c9a36210662 | 3640:1b2cd5dceca2 |
---|---|
323 dest.write(t) | 323 dest.write(t) |
324 | 324 |
325 def write_header(self, thing): | 325 def write_header(self, thing): |
326 self.write(thing, header=True) | 326 self.write(thing, header=True) |
327 | 327 |
328 def show(self, rev=0, changenode=None, brinfo=None, changes=None, | 328 def show(self, rev=0, changenode=None, brinfo=None, copies=[], **props): |
329 copies=[], **props): | |
330 '''show a single changeset or file revision''' | 329 '''show a single changeset or file revision''' |
331 log = self.repo.changelog | 330 log = self.repo.changelog |
332 if changenode is None: | 331 if changenode is None: |
333 changenode = log.node(rev) | 332 changenode = log.node(rev) |
334 elif not rev: | 333 elif not rev: |
335 rev = log.rev(changenode) | 334 rev = log.rev(changenode) |
336 if changes is None: | 335 |
337 changes = log.read(changenode) | 336 changes = log.read(changenode) |
338 | 337 |
339 def showlist(name, values, plural=None, **args): | 338 def showlist(name, values, plural=None, **args): |
340 '''expand set of values. | 339 '''expand set of values. |
341 name is name of key in template map. | 340 name is name of key in template map. |
342 values is list of strings or dicts. | 341 values is list of strings or dicts. |