Mercurial > hgsubversion
comparison 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 |
comparison
equal
deleted
inserted
replaced
197:43d56e973c3c | 198:df4611050286 |
---|---|
121 def is_svn_repo(repo): | 121 def is_svn_repo(repo): |
122 return os.path.exists(os.path.join(repo.path, 'svn')) | 122 return os.path.exists(os.path.join(repo.path, 'svn')) |
123 | 123 |
124 default_commit_msg = '*** empty log message ***' | 124 default_commit_msg = '*** empty log message ***' |
125 | 125 |
126 def describe_revision(r): | 126 def describe_revision(ui, r): |
127 try: | 127 try: |
128 msg = [s for s in map(str.strip, r.message.splitlines()) if s][0] | 128 msg = [s for s in map(str.strip, r.message.splitlines()) if s][0] |
129 except: | 129 except: |
130 msg = default_commit_msg | 130 msg = default_commit_msg |
131 | 131 |
132 return ('[r%d] %s: %s' % (r.revnum, r.author, msg))[:80] + '\n' | 132 ui.status(('[r%d] %s: %s' % (r.revnum, r.author, msg))[:80] + '\n') |
133 | 133 |
134 def describe_commit(h, b): | 134 def describe_commit(ui, h, b): |
135 return ' committed to "%s" as %s\n' % ((b or 'default'), node.short(h)) | 135 ui.note(' committed to "%s" as %s\n' % ((b or 'default'), node.short(h))) |