Mercurial > hgsubversion
diff util.py @ 198:df4611050286
Output consolidation; decrease the ‘Fetching...’ message to debug level.
author | Dan Villiom Podlaski Christiansen <danchr@cs.au.dk> |
---|---|
date | Thu, 12 Feb 2009 15:10:42 +0100 |
parents | 77812f98e250 |
children | ced45b753ba7 |
line wrap: on
line diff
--- a/util.py +++ b/util.py @@ -123,13 +123,13 @@ def is_svn_repo(repo): default_commit_msg = '*** empty log message ***' -def describe_revision(r): +def describe_revision(ui, r): try: msg = [s for s in map(str.strip, r.message.splitlines()) if s][0] except: msg = default_commit_msg - return ('[r%d] %s: %s' % (r.revnum, r.author, msg))[:80] + '\n' + ui.status(('[r%d] %s: %s' % (r.revnum, r.author, msg))[:80] + '\n') -def describe_commit(h, b): - return ' committed to "%s" as %s\n' % ((b or 'default'), node.short(h)) +def describe_commit(ui, h, b): + ui.note(' committed to "%s" as %s\n' % ((b or 'default'), node.short(h)))