Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.0, 1.0.1, and 1.0.2

cslist: replace 'changeset' to 'item'

ChangesetList is able to show patches, not only changesets.
So the keyword 'item' is more better than 'changeset'.

Changeset 03ba81491456

Parent 4a294d567054

by Yuki KODAMA

Changes to one file · Browse files at 03ba81491456 Showing diff from parent 4a294d567054 Diff from another changeset...

 
1
 
2
3
4
 
24
25
26
27
 
28
29
30
 
69
70
71
72
 
73
74
75
 
117
118
119
120
 
121
122
123
 
127
128
129
130
 
131
132
133
 
137
138
139
140
141
 
 
142
143
144
 
203
204
205
206
 
207
208
209
 
213
214
215
216
 
217
218
219
 
246
247
248
249
 
250
251
252
 
279
280
281
282
 
283
284
285
286
287
 
288
289
290
 
313
314
315
316
 
317
318
319
 
322
323
324
325
326
 
 
327
328
329
 
354
355
356
357
 
358
359
360
361
362
 
363
364
 
365
366
367
 
 
1
2
3
4
 
24
25
26
 
27
28
29
30
 
69
70
71
 
72
73
74
75
 
117
118
119
 
120
121
122
123
 
127
128
129
 
130
131
132
133
 
137
138
139
 
 
140
141
142
143
144
 
203
204
205
 
206
207
208
209
 
213
214
215
 
216
217
218
219
 
246
247
248
 
249
250
251
252
 
279
280
281
 
282
283
284
285
286
 
287
288
289
290
 
313
314
315
 
316
317
318
319
 
322
323
324
 
 
325
326
327
328
329
 
354
355
356
 
357
358
359
360
361
 
362
363
 
364
365
366
367
@@ -1,4 +1,4 @@
-# cslist.py - embeddable changeset list component +# cslist.py - embeddable changeset/patch list component  #  # Copyright 2009 Yuki KODAMA <endflow.net@gmail.com>  # @@ -24,7 +24,7 @@
  gobject.TYPE_NONE,   (object, # number of count or None   object, # number of total or None - bool, # whether all changesets are shown + bool, # whether all items are shown   bool)) # whether cslist is updating   }   @@ -69,7 +69,7 @@
  self.compactopt = gtk.CheckButton(_('Use compact view'))   statusbox.pack_end(self.compactopt, False, False, 2)   - ## changeset list + ## item list   scroll = gtk.ScrolledWindow()   basebox.add(scroll)   self.scroll = scroll @@ -117,7 +117,7 @@
    def update(self, items=None, repo=None, limit=True, queue=False, **kargs):   """ - Update changeset list. + Update the item list.     Public arguments:   items: List of revision numbers and/or patch file path. @@ -127,7 +127,7 @@
  repo: Repository used to get changeset information.   If omitted, previous repo will be used to show them.   Default: None. - limit: If True, some of changesets will be shown. Default: True. + limit: If True, some of items will be shown. Default: True.   queue: If True, the update request will be queued to prevent   frequent updatings. In some cases, this option will help   to improve UI response. Default: False. @@ -137,8 +137,8 @@
  Note that if you use this, 'limit' value will be ignored   and overwritten by previous 'limit' value. Default: False.   - return: True if the list was updated, False if the list wasn't - updated. + return: True if the item list was updated successfully, + False if it wasn't updated.   """   # check parameters   if not items or not repo: @@ -203,7 +203,7 @@
  snipbox.pack_start(gtk.Label())   self.item_snip = snipbox   - # determine changesets to show + # determine items to show   numtotal = len(items)   if limit and self.limit < numtotal:   toshow, lastitem = items[:self.limit-1], items[self.limit-1:][-1] @@ -213,7 +213,7 @@
  self.showitems = toshow + (lastitem and [lastitem] or [])     def proc(): - # update changeset list + # update item list   add_sep(False, 'first', (-1, 0))   for index, r in enumerate(toshow):   add_csinfo(r) @@ -246,7 +246,7 @@
    def clear(self, noemit=False):   """ - Clear changeset list. + Clear the item list.     noemit: If True, cslist won't emit 'list-updated' signal.   Default: False. @@ -279,12 +279,12 @@
  return []     def get_list_limit(self): - """ Return number of changesets to limit to display """ + """ Return number of items to limit to display """   return self.limit     def set_list_limit(self, limit):   """ - Set number of changesets to limit to display. + Set number of items to limit to display.     limit: Integer, must be more than 3. Default: 20.   """ @@ -313,7 +313,7 @@
  """   Set whether the selection feature is enabled.   When it's enabled, checboxes will be shown in the left of - changeset panels. + csinfo widgets.     enable: Boolean, if True, the selection feature will be enabled.   Default: False. @@ -322,8 +322,8 @@
    def has_limit(self):   """ - Return whether the list shows all changesets. - If the list has no changesets, it will return None. + Return whether the item list shows all items. + If the item list has no items, it will return None.   """   if self.curitems:   num = len(self.curitems) @@ -354,14 +354,14 @@
  if message:   text = message   elif count is None or total is None: - text = _('No changesets to display') + text = _('No items to display')   else:   all = count == total   button = not all   if all: - text = _('Displaying all changesets') + text = _('Displaying all items')   else: - text = _('Displaying %(count)d of %(total)d changesets') \ + text = _('Displaying %(count)d of %(total)d items') \   % dict(count=count, total=total)   self.statuslabel.set_text(text)   self.allbtn.set_property('visible', button)