Mercurial > hgsubversion
comparison util.py @ 186:6266ba36ee15
Create patch to make normal output much less verboseā¦
| author | Dan Villiom Podlaski Christiansen <danchr@cs.au.dk> |
|---|---|
| date | Sat, 17 Jan 2009 15:30:38 -0600 |
| parents | 57355b0e7bd1 |
| children | 6e3f99ba47ec |
comparison
equal
deleted
inserted
replaced
| 185:57355b0e7bd1 | 186:6266ba36ee15 |
|---|---|
| 107 return extra | 107 return extra |
| 108 | 108 |
| 109 | 109 |
| 110 def is_svn_repo(repo): | 110 def is_svn_repo(repo): |
| 111 return os.path.exists(os.path.join(repo.path, 'svn')) | 111 return os.path.exists(os.path.join(repo.path, 'svn')) |
| 112 | |
| 113 default_commit_msg = '*** empty log message ***' | |
| 114 | |
| 115 def describe_revision(r): | |
| 116 try: | |
| 117 msg = [s for s in map(str.strip, r.message.splitlines()) if s][0] | |
| 118 except: | |
| 119 msg = default_commit_msg | |
| 120 | |
| 121 return ('[r%d] %s: %s' % (r.revnum, r.author, msg))[:80] + '\n' | |
| 122 | |
| 123 def describe_commit(h, b): | |
| 124 return ' committed to "%s" as %s\n' % ((b or 'default'), node.short(h)) |
