Download:
child 11:4eebb2e67e85
parent 9:84423e165ad2
10:198302d7eeaf
Brendan Cully <brendan@kublai.com>, Wed, 01 May 2013 16:13:25 -0500
add url to changelog results

1 файлов изменено, 7 вставок(+), 4 удалений(-) [+]
plugin.py file | annotate | diff | comparison | revisions
--- a/plugin.py Wed Oct 19 17:10:10 2011 -0500
+++ b/plugin.py Wed May 01 16:13:25 2013 -0500
@@ -165,13 +165,16 @@
return ['No result found.']
lines = [x for x in out.strip().splitlines() if x]
- rev, date, user, files = lines[:4]
+ node, date, user, files = lines[:4]
lines = lines[4:]
- rev = ircutils.bold(rev)
+ node = ircutils.bold(node)
user = ircutils.mircColor(user, fg='green')
- lines = ['%s %s %s' % (rev, user, date)] + lines
- return lines[:2]
+ lines = ['%s %s %s' % (node, user, date)] + lines
+
+ baseurl = self.hg.run("-R %s paths default" % repo)
+ url = "%s/rev/%s" % (baseurl.strip("\n/"), rev)
+ return lines[:2] + [url]
def crew(self, irc, msg, args, rev):
"gets the changelog message for the given revision of the crew repository"