Download:
child 26:ba80cf1291a8
parent 24:751c2fca6ce6
25:02687e613b7d draft
Anton Shestakov <av6@dwimlabs.net>, Wed, 21 Nov 2018 20:35:46 +0800
plugin: drop {files} from changelog template, they weren't used anyway

1 файлов изменено, 3 вставок(+), 3 удалений(-) [+]
plugin.py file | annotate | diff | comparison | revisions
--- a/plugin.py Wed Nov 21 19:24:01 2018 +0800
+++ b/plugin.py Wed Nov 21 20:35:46 2018 +0800
@@ -93,7 +93,7 @@
hghelp = wrap(hghelp, ['text'])
def _changelog(self, irc, repo, rev):
- tmpl = '{rev}:{node|short}\n{date|age}\n{author|person}\n{files}\n{desc}'
+ tmpl = '{rev}:{node|short}\n{date|age}\n{author|person}\n{desc}'
out, err = self.hg.run([
'-R', repo, 'log', '-r', rev, '-l', '1', '--template', tmpl, '-v'
])
@@ -104,8 +104,8 @@
return irc.reply('no changesets found')
lines = [x for x in out.strip().splitlines() if x]
- node, date, user, files = lines[:4]
- lines = lines[4:]
+ node, date, user = lines[:3]
+ lines = lines[3:]
node = ircutils.bold(node)
user = ircutils.mircColor(user, fg='green')