Mercurial > hg
diff hgext/journal.py @ 29675:12f04946053c
journal: use fm.hexfunc() to get full hash in JSON/template output (BC)
We generally do that.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sun, 31 Jul 2016 16:38:16 +0900 |
parents | 7503d8874617 |
children | 69890b5dd32b |
line wrap: on
line diff
--- a/hgext/journal.py Thu Aug 04 00:04:48 2016 +0530 +++ b/hgext/journal.py Sun Jul 31 16:38:16 2016 +0900 @@ -475,8 +475,8 @@ for count, entry in enumerate(repo.journal.filtered(name=name)): if count == limit: break - newhashesstr = ','.join([node.short(hash) for hash in entry.newhashes]) - oldhashesstr = ','.join([node.short(hash) for hash in entry.oldhashes]) + newhashesstr = ','.join([fm.hexfunc(hash) for hash in entry.newhashes]) + oldhashesstr = ','.join([fm.hexfunc(hash) for hash in entry.oldhashes]) fm.startitem() fm.condwrite(ui.verbose, 'oldhashes', '%s -> ', oldhashesstr)