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

changest: prevent index errors in get_title()

opts['rev'] can be a list or a string because of the baggage
we're carrying in this file. This should be fixed properly in 0.9.

Changeset 433ddbe1df9d

Parent dd42f3024091

by Steve Borho

Changes to one file · Browse files at 433ddbe1df9d Showing diff from parent dd42f3024091 Diff from another changeset...

 
27
28
29
30
 
 
 
 
 
31
32
33
 
27
28
29
 
30
31
32
33
34
35
36
37
@@ -27,7 +27,11 @@
    def get_title(self):   title = toutf(os.path.basename(self.repo.root)) + ' changeset ' - title += self.opts['rev'][0] + rev = self.opts['rev'] + if isinstance(rev, str): + title += rev + else: + title += rev[0]   return title     def get_icon(self):