Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.8, 0.8.1, and 0.8.2

merge: add gettext wrappers

Changeset ccc83a03049b

Parent 650fda3de62c

by Yuki KODAMA

Changes to one file · Browse files at ccc83a03049b Showing diff from parent 650fda3de62c Diff from another changeset...

Change 1 of 1 Show Entire File hggtk/​merge.py Stacked
 
101
102
103
104
105
106
107
 
 
 
 
 
108
109
110
 
111
112
 
 
113
114
 
115
116
117
 
101
102
103
 
 
 
 
104
105
106
107
108
109
110
 
111
112
 
113
114
115
 
116
117
118
119
@@ -101,17 +101,19 @@
  summary = ctx.description().replace('\0', '')   summary = summary.split('\n')[0]   escape = gobject.markup_escape_text - desc = '<b>rev</b>\t\t: %s\n' % escape(revstr) - desc += '<b>summary</b>\t: %s\n' % escape(summary[:80]) - desc += '<b>user</b>\t\t: %s\n' % escape(ctx.user()) - desc += '<b>date</b>\t\t: %s\n' % escape(hglib.displaytime(ctx.date())) + desc = '<b>' + _('rev') + '</b>\t\t: %s\n' % escape(revstr) + desc += '<b>' + _('summary') + '</b>\t: %s\n' % escape(summary[:80]) + desc += '<b>' + _('user') + '</b>\t\t: %s\n' % escape(ctx.user()) + desc += '<b>' + _('date') + '</b>\t\t: %s\n' \ + % escape(hglib.displaytime(ctx.date()))   node = repo.lookup(revid)   tags = repo.nodetags(node) - desc += '<b>branch</b>\t: ' + escape(ctx.branch()) + desc += '<b>' + _('branch') + '</b>\t: ' + escape(ctx.branch())   if tags: - desc += '\n<b>tags</b>\t\t: ' + escape(', '.join(tags)) + desc += '\n<b>' + _('tags') + '</b>\t\t: ' \ + + escape(', '.join(tags))   if node not in repo.heads(): - desc += '\n<b>Not a head revision!</b>' + desc += '\n<b>' + _('Not a head revision!') + '</b>'   return revstr, hglib.toutf(desc)     def set_notify_func(self, func, *args):