Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 2.0.1, 2.0.2, and 2.0.3

stable pbranch: remove trailing white-space

Changeset 39eb4ace903d

Parent 19b30dd0e91c

by Steve Borho

Changes to one file · Browse files at 39eb4ace903d Showing diff from parent 19b30dd0e91c Diff from another changeset...

 
22
23
24
25
 
26
27
28
 
129
130
131
132
 
133
134
135
 
137
138
139
140
 
141
142
143
 
175
176
177
178
 
179
180
181
 
299
300
301
302
 
303
304
305
306
 
307
308
309
 
312
313
314
315
 
316
317
318
 
339
340
341
342
 
343
344
345
346
347
348
349
 
350
351
352
 
358
359
360
361
 
362
363
364
 
372
373
374
375
 
376
377
378
 
401
402
403
404
 
405
406
407
 
435
436
437
438
 
439
440
441
 
458
459
460
461
 
462
463
464
 
22
23
24
 
25
26
27
28
 
129
130
131
 
132
133
134
135
 
137
138
139
 
140
141
142
143
 
175
176
177
 
178
179
180
181
 
299
300
301
 
302
303
304
305
 
306
307
308
309
 
312
313
314
 
315
316
317
318
 
339
340
341
 
342
343
344
345
346
347
348
 
349
350
351
352
 
358
359
360
 
361
362
363
364
 
372
373
374
 
375
376
377
378
 
401
402
403
 
404
405
406
407
 
435
436
437
 
438
439
440
441
 
458
459
460
 
461
462
463
464
@@ -22,7 +22,7 @@
   class PatchBranchWidget(QWidget):   ''' - A widget that show the patch graph and provide actions + A widget that show the patch graph and provide actions   for the pbranch extension   '''   output = pyqtSignal(QString, QString) @@ -129,7 +129,7 @@
    # compute model data   self.patchlistmodel.setModel( - self.compute_model(), + self.compute_model(),   self.repo.changectx('.').branch() )     # restore patch selection @@ -137,7 +137,7 @@
  selinxs = self.patchlistmodel.match(   self.patchlistmodel.index(0, patchnamecol),   Qt.DisplayRole, - selname, + selname,   flags = Qt.MatchExactly)   if len(selinxs) > 0:   self.patchlist.setCurrentIndex(selinxs[0]) @@ -175,7 +175,7 @@
  parents = graph.deps(name)     # Node properties - if name in dep_list: + if name in dep_list:   node_column = dep_list.index(name)   else:   node_column = len(dep_list) @@ -299,11 +299,11 @@
  return False   self.pnew(hglib.fromunicode(new_name))   return True - +   def pnew(self, patch_name):   """   [pbranch] Execute 'pnew' command. - +   :param patch_name: Name of new patch-branch   """   if self.pbranch is None: @@ -312,7 +312,7 @@
  self.pbranch.cmdnew(self.repo.ui, self.repo, patch_name)   self.repo.decrementBusyCount()   return True - +   def pmerge(self, patch_name=None):   """   [pbranch] Execute 'pmerge' command. @@ -339,14 +339,14 @@
    def is_patch(self, branch_name):   """ return True if branch is a patch. This excludes root branches - and internal diff base branches (for patches with multiple + and internal diff base branches (for patches with multiple   dependencies. """   return self.has_pbranch() and self.pgraph().ispatch(branch_name)     def cur_branch(self):   """ Return branch that workdir belongs to. """   return self.repo.dirstate.branch() - +   ### internal functions ###     def update_sensitivity(self): @@ -358,7 +358,7 @@
  self.actionReapply.setEnabled(True)   self.actionPNew.setEnabled(not is_merge)   self.actionEditPGraph.setEnabled(True) - +   def selected_patch(self):   C_NAME = PatchBranchModel._columns.index('Name')   indexes = self.patchlist.selectedIndexes() @@ -372,7 +372,7 @@
  patchname = self.selected_patch()   if not patchname:   return - +   menu = QMenu(self)   def append(label, handler):   menu.addAction(label).triggered.connect(handler) @@ -401,7 +401,7 @@
  def contextMenuEvent(self, event):   if self.patchlist.geometry().contains(event.pos()):   self.show_patch_cmenu(event.globalPos()) - +   def commandFinished(self, ret):   self.repo.decrementBusyCount()   self.refresh() @@ -435,7 +435,7 @@
  no_editor_configured =(os.environ.get("HGEDITOR") or   self.repo.ui.config("ui", "editor") or   os.environ.get("VISUAL") or - os.environ.get("EDITOR","editor-not-configured") + os.environ.get("EDITOR","editor-not-configured")   == "editor-not-configured")   if no_editor_configured:   qtlib.ErrorMsgBox(_('No editor found'), @@ -458,7 +458,7 @@
  def goto_activated(self):   branch = self.selected_patch()   # TODO: Fetch list of heads of branch - # - use a list of revs if more than one found + # - use a list of revs if more than one found   dlg = update.UpdateDialog(self.repo, branch, self)   dlg.output.connect(self.output)   dlg.makeLogVisible.connect(self.makeLogVisible)