Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.9, 1.9.1, and 1.9.2

repomodel: tweak node column

* mercurial.node is an internal implementation module, they prefer we use ctxs
* we don't have to show all columns we support by default.

In fact, I'll probably remove Tags and Branch from the default column list once
we show those in the log column, and Age will eventually replaced Date as the
default.

Changeset f6826aade658

Parent 735affe269e2

by Steve Borho

Changes to one file · Browse files at f6826aade658 Showing diff from parent 735affe269e2 Diff from another changeset...

 
14
15
16
17
 
18
19
20
 
114
115
116
117
118
 
119
120
121
 
261
262
263
264
 
265
266
267
 
14
15
16
 
17
18
19
20
 
114
115
116
 
 
117
118
119
120
 
260
261
262
 
263
264
265
266
@@ -14,7 +14,7 @@
 # this program; if not, write to the Free Software Foundation, Inc.,  # 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.   -from mercurial import util, error, node +from mercurial import util, error    from tortoisehg.util.hglib import tounicode, username  from tortoisehg.hgqt.graph import Graph @@ -114,8 +114,7 @@
  """   Model used for displaying the revisions of a Hg *local* repository   """ - _columns = ('Graph', 'ID', 'Node', 'Branch', 'Log', 'Author', 'Date', - 'Tags',) + _columns = ('Graph', 'ID', 'Branch', 'Log', 'Author', 'Date', 'Tags',)   _stretchs = {'Log': 1, }     def __init__(self, repo, branch='', parent=None): @@ -261,7 +260,7 @@
  if column == 'ID':   return str(len(self.repo))   if column == 'Node': - return node.short(node.nullid) + return str(self.repo['.'])   if column == 'Date':   return cvrt_date(self.repo[None].date())   if column == 'Tags':