Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.7, 0.7.1, and 0.7.2

synch: place separator between repo paths and history

Changeset e621f9b64fcb

Parent 6dbe8a1c395c

by Steve Borho

Changes to one file · Browse files at e621f9b64fcb Showing diff from parent 6dbe8a1c395c Diff from another changeset...

Change 1 of 3 Show Entire File hggtk/​synch.py Stacked
 
114
115
116
117
 
118
 
119
120
121
 
132
133
134
135
 
136
137
 
138
139
140
141
 
 
 
 
 
142
143
144
 
437
438
439
440
 
 
 
 
 
 
 
 
 
441
442
443
 
114
115
116
 
117
118
119
120
121
122
 
133
134
135
 
136
137
138
139
140
141
 
 
142
143
144
145
146
147
148
149
 
442
443
444
 
445
446
447
448
449
450
451
452
453
454
455
456
@@ -114,8 +114,9 @@
  revbox.pack_start(lbl, False, False)     # revisions combo box - self.pathlist = gtk.ListStore(str) + self.pathlist = gtk.ListStore(str, bool)   self._pathbox = gtk.ComboBoxEntry(self.pathlist, 0) + self._pathbox.set_row_separator_func(lambda model, iter: model[iter][1])   self._pathtext = self._pathbox.get_child()     # support dropping of repos or bundle files @@ -132,13 +133,17 @@
  defpushrow = row   elif name == 'default-push':   defpushrow = row - self.pathlist.append([path]) + self.pathlist.append([path, False])     sympaths = [x[1] for x in self.paths] + separator = False   for p in self._recent_src:   if p not in sympaths: - self.pathlist.append([p]) - + if not separator: + self.pathlist.append(['-'*20, True]) + separator = True + self.pathlist.append([p, False]) +   if repos:   self._pathtext.set_text(repos[0])   elif defpushrow is not None and pushmode: @@ -437,7 +442,15 @@
  self.paths = self._get_paths()   self.pathlist.clear()   for row, (name, path) in enumerate(self.paths): - self.pathlist.append([path]) + self.pathlist.append([path, False]) + sympaths = [x[1] for x in self.paths] + separator = False + for p in self._recent_src: + if p not in sympaths: + if not separator: + self.pathlist.append(['-'*20, True]) + separator = True + self.pathlist.append([p, False])     def _email_clicked(self, toolbutton, data=None):   path = self._pathtext.get_text()