sys.stdout.write("= %s %s\n" % (arg, ((width - len(arg) - 5) * "=")))
metadata = History(arg)
ctx.resolve(metadata)
- for item in metadata:
+ for item in metadata.current_branch(reversed=True):
if ctx.is_empty() or item.revno in ctx:
# Must allow enough room for revno and date
summary = item.log.strip()[:width - 34]
sys.stdout.write("= %s %s\n" % (arg, ((width - len(arg) - 5) * "=")))
metadata = History(arg)
ctx.resolve(metadata)
- for item in metadata:
+ for item in metadata.current_branch(reversed=True):
if ctx.is_empty() or item.revno in ctx:
sys.stdout.write("%-4d | %s\n%s" % (item.revno, item.date, item.log))
sys.stdout.write(("-" * (width - 1)) + "\n")