Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.9.1, 0.9.1.1, and 0.9.2

stable history: restore URL correctly when exiting bundle preview mode

If the URL was changed by entering text into the combobox
before bundle preview mode was activated, it wasn't restored
afterwards.

Changeset ef1f57118dc8

Parent aab8032d8c22

by Sune Foldager

Changes to one file · Browse files at ef1f57118dc8 Showing diff from parent aab8032d8c22 Diff from another changeset...

 
1136
1137
1138
1139
 
 
 
 
1140
1141
1142
 
1200
1201
1202
 
 
1203
1204
1205
 
1136
1137
1138
 
1139
1140
1141
1142
1143
1144
1145
 
1203
1204
1205
1206
1207
1208
1209
1210
@@ -1136,7 +1136,10 @@
  def remove_overlay(self, resettip):   self.bfile = None   self.npreviews = 0 - self.urlcombo.set_active(self.origurl) + if isinstance(self.origurl, int): + self.urlcombo.set_active(self.origurl) + else: + self.pathentry.set_text(self.origurl)   self.repo = hg.repository(self.ui, path=self.repo.root)   self.graphview.set_repo(self.repo, self.stbar)   self.changeview.set_repo(self.repo) @@ -1200,6 +1203,8 @@
    def set_bundlefile(self, bfile, **kwopts):   self.origurl = self.urlcombo.get_active() + if self.origurl == -1: + self.origurl = self.pathentry.get_text()   self.pathentry.set_text(bfile)     # create apply/reject toolbar buttons