Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.1, 1.1.1, and 1.1.2

commit: set last_commit_id when a commit is found in undo.desc

This hack is required until we drop support for hg-1.5

Changeset 4805d9137d2c

Parent 46d5e640d4c0

by Steve Borho

Changes to one file · Browse files at 4805d9137d2c Showing diff from parent 46d5e640d4c0 Diff from another changeset...

 
779
780
781
782
 
 
 
783
784
785
 
779
780
781
 
782
783
784
785
786
787
@@ -779,7 +779,9 @@
  # when hg-1.5 support is dropped, self.last_commit_id   # can be removed   args = self.repo.opener('undo.desc', 'r').read().splitlines() - can_undo = args[1] == 'commit' + if args[1] == 'commit': + can_undo = True + self.last_commit_id = self.get_tip_rev(True)   except (IOError, IndexError):   pass   self.cmd_set_sensitive('undo', can_undo)