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 revset: Display the repository displayname on the revset dialog title

Since each revset dialog belongs to a certain repository, it makes sense to
display the repository name in the title to avoid confusion.

Note that my editor removed a few trailing white spaces in some lines which are
unrelated to the change implemented by this patch. I could resend the patch
after shelving those changes. Should I do that or are these sort of white space
related changes ok? (otherwise I'll get this problem each time I modify this
file).

Changeset 68958c11bf01

Parent 2f73cf69dc77

by Angel Ezquerra

Changes to one file · Browse files at 68958c11bf01 Showing diff from parent 2f73cf69dc77 Diff from another changeset...

 
118
119
120
121
 
 
 
122
123
124
 
242
243
244
245
 
246
247
248
 
290
291
292
293
 
294
295
296
 
118
119
120
 
121
122
123
124
125
126
 
244
245
246
 
247
248
249
250
 
292
293
294
 
295
296
297
298
@@ -118,7 +118,9 @@
  QDialog.__init__(self, parent)     self.repo = repo - self.setWindowTitle(_('Revision Set Query')) + # Since the revset dialot belongs to a repository, we display + # the repository name in the dialog title + self.setWindowTitle(_('Revision Set Query') + ' - ' + repo.displayname)   self.setWindowFlags(Qt.Window)     layout = QVBoxLayout() @@ -242,7 +244,7 @@
  bopen = sel.indexOf('(')   bclose = sel.lastIndexOf(')')   if bopen < bclose: - self.entry.setSelection(lineFrom, start+bopen+1, + self.entry.setSelection(lineFrom, start+bopen+1,   lineFrom, start+bclose)   self.entry.setFocus()   return @@ -290,7 +292,7 @@
  end = end+1   bopen = itext.indexOf('(')   newtext = text[:start] + itext[:bopen+1] + text[start:end] + \ - ')' + text[end:] + ')' + text[end:]   self.entry.setText(newtext)   self.entry.setSelection(line, start, line, end+bopen+2)   self.entry.endUndoAction()