Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph

Merge with stable

Changeset e82e864a5439

Parents 1138ebafa026

Parents dd09a860d097

by Adrian Buehlmann

Changes to 5 files · Browse files at e82e864a5439 Showing diff from parent 1138ebafa026 dd09a860d097 Diff from another changeset...

Change 1 of 1 Show Entire File ReleaseProcedure.txt Stacked
 
4
5
6
7
 
8
9
10
 
4
5
6
 
7
8
9
10
@@ -4,7 +4,7 @@
 * Pull latest translations from Launchpad  * update url in qtlib.openhelpcontents() (major release only)  * set revision number in doc/source/conf.py -* tag stable branch of repository, push +* tag stable branches of thg and shellext repos, push  * build pdf hgbook, check into thg-winbuild (major release only)  * build release installer  * commit extension versions, tag, push thg-winbuild
 
10
11
12
13
14
15
16
17
 
 
18
19
20
21
 
22
23
24
 
243
244
245
246
 
247
248
249
 
252
253
254
255
 
256
257
258
 
263
264
265
266
 
 
267
268
 
 
269
270
 
271
272
273
274
275
276
 
 
277
278
279
 
281
282
283
284
 
 
285
286
287
288
289
 
290
291
292
 
302
303
304
305
 
306
307
308
 
311
312
313
314
 
315
316
 
317
318
319
 
320
321
 
322
323
324
 
445
446
447
448
 
449
450
451
 
468
469
470
471
 
472
473
474
 
477
478
479
480
 
481
482
483
 
524
525
526
527
 
 
 
 
 
 
 
 
528
529
530
 
536
537
538
539
 
540
541
542
 
10
11
12
 
 
13
14
15
16
17
18
19
20
 
21
22
23
24
 
243
244
245
 
246
247
248
249
 
252
253
254
 
255
256
257
258
 
263
264
265
 
266
267
268
 
269
270
271
 
272
273
274
275
276
277
 
278
279
280
281
282
 
284
285
286
 
287
288
289
290
291
292
 
293
294
295
296
 
306
307
308
 
309
310
311
312
 
315
316
317
 
318
319
 
320
321
322
 
323
324
 
325
326
327
328
 
449
450
451
 
452
453
454
455
 
472
473
474
 
475
476
477
478
 
481
482
483
 
484
485
486
487
 
528
529
530
 
531
532
533
534
535
536
537
538
539
540
541
 
547
548
549
 
550
551
552
553
@@ -10,15 +10,15 @@
   import os   -from mercurial import util -  from PyQt4.QtCore import *  from PyQt4.QtGui import *   +from mercurial import error +  from tortoisehg.util import paths, hglib    from tortoisehg.hgqt.i18n import _ -from tortoisehg.hgqt import qtlib, qscilib, fileview, status, thgrepo +from tortoisehg.hgqt import qtlib, fileview, status, thgrepo  from tortoisehg.hgqt import visdiff, revert, revpanel, workbench  from tortoisehg.hgqt.filedialogs import FileLogDialog, FileDiffDialog  from tortoisehg.hgqt.manifestmodel import ManifestModel @@ -243,7 +243,7 @@
  def vdiff(self):   if self.path is None:   return - pats = [self.path] + pats = [hglib.fromunicode(self.path)]   opts = {'change':self.rev}   dlg = visdiff.visualdiff(self._repo.ui, self._repo, pats, opts)   if dlg: @@ -252,7 +252,7 @@
  def vdifflocal(self):   if self.path is None:   return - pats = [self.path] + pats = [hglib.fromunicode(self.path)]   assert type(self.rev) is int   opts = {'rev':['rev(%d)' % self.rev]}   dlg = visdiff.visualdiff(self._repo.ui, self._repo, pats, opts) @@ -263,17 +263,20 @@
  if self.path is None:   return   if self.rev is None: - qtlib.editfiles(self._repo, [self.path], parent=self) + qtlib.editfiles(self._repo, [hglib.fromunicode(self.path)], + parent=self)   else: - base, _ = visdiff.snapshot(self._repo, [self.path], + base, _ = visdiff.snapshot(self._repo, + [hglib.fromunicode(self.path)],   self._repo[self.rev]) - files = [os.path.join(base, self.path)] + files = [os.path.join(base, hglib.fromunicode(self.path))]   qtlib.editfiles(self._repo, files, parent=self)     def editlocal(self):   if self.path is None:   return - qtlib.editfiles(self._repo, [self.path], parent=self) + qtlib.editfiles(self._repo, [hglib.fromunicode(self.path)], + parent=self)     def revertfile(self):   if self.path is None: @@ -281,12 +284,13 @@
  rev = self.rev   if rev is None:   rev = self._repo['.'].rev() - dlg = revert.RevertDialog(self._repo, [self.path], rev, self) + dlg = revert.RevertDialog(self._repo, [hglib.fromunicode(self.path)], + rev, self)   dlg.exec_()     def _navigate(self, filename, dlgclass, dlgdict):   if not filename: - filename = self.path + filename = hglib.fromunicode(self.path)   if filename not in dlgdict:   repoviewer = self.window()   if not isinstance(repoviewer, workbench.Workbench): @@ -302,7 +306,7 @@
  dlg.activateWindow()     def opensubrepo(self): - path = self._repo.wjoin(self.path) + path = self._repo.wjoin(hglib.fromunicode(self.path))   if os.path.isdir(path):   self.linkActivated.emit(u'subrepo:'+hglib.tounicode(path))   else: @@ -311,14 +315,14 @@
  _("The selected subrepository does not exist on the working directory"))     def explore(self): - root = self._repo.wjoin(self.path) + root = self._repo.wjoin(hglib.fromunicode(self.path))   if os.path.isdir(root): - QDesktopServices.openUrl(QUrl.fromLocalFile(root)) + QDesktopServices.openUrl(QUrl.fromLocalFile(hglib.tounicode(root)))     def terminal(self): - root = self._repo.wjoin(self.path) + root = self._repo.wjoin(hglib.fromunicode(self.path))   if os.path.isdir(root): - qtlib.openshell(root, self.path) + qtlib.openshell(root, hglib.fromunicode(self.path))     def showEvent(self, event):   QWidget.showEvent(self, event) @@ -445,7 +449,7 @@
  self.revChanged.emit(rev)   self._setupmodel()   ctx = self._repo[rev] - if path and path in ctx: + if path and hglib.fromunicode(path) in ctx:   # recover file selection after reloading the model   self.setPath(path)   self._fileview.setContext(ctx) @@ -468,7 +472,7 @@
  if path != self.path:   self.setPath(path)   ctx = self._repo[rev] - if self.path in ctx: + if hglib.fromunicode(self.path) in ctx:   self._fileview.displayFile(path, self.status)   if line:   self._fileview.showLine(int(line) - 1) @@ -477,7 +481,7 @@
    @property   def path(self): - """Return currently selected path""" + """Return currently selected path [unicode]"""   return self._treemodel.filePath(self._treeview.currentIndex())     @property @@ -524,7 +528,14 @@
   def run(ui, *pats, **opts):   repo = opts.get('repo') or thgrepo.repository(ui, paths.find_root()) - dlg = ManifestDialog(repo, opts.get('rev')) + try: + # ManifestWidget expects integer revision + rev = repo[opts.get('rev')].rev() + except error.RepoLookupError, e: + qtlib.ErrorMsgBox(_('Failed to open Manifest dialog'), + hglib.tounicode(e.message)) + return + dlg = ManifestDialog(repo, rev)     # set initial state after dialog visible   def init(): @@ -536,7 +547,7 @@
  else:   return   line = opts.get('line') and int(opts['line']) or None - dlg.setSource(path, opts.get('rev'), line) + dlg.setSource(path, rev, line)   if opts.get('pattern'):   dlg.setSearchPattern(opts['pattern'])   if dlg._manifest_widget._fileview.actionAnnMode.isEnabled():
 
9
10
11
 
12
13
14
 
40
41
42
43
 
44
45
46
 
246
247
248
249
250
 
 
 
 
251
252
253
 
9
10
11
12
13
14
15
 
41
42
43
 
44
45
46
47
 
247
248
249
 
 
250
251
252
253
254
255
256
@@ -9,6 +9,7 @@
 from PyQt4.QtCore import *  from PyQt4.QtGui import *   +from tortoisehg.util import hglib  from tortoisehg.hgqt.i18n import _  from tortoisehg.hgqt import revset, qtlib   @@ -40,7 +41,7 @@
    #Check if the font contains the glyph needed by the branch combo   if not QFontMetrics(self.font()).inFont(QString(u'\u2605').at(0)): - self._allBranchesLabel = u'*** %s ***' % _('Show all') + self._allBranchesLabel = u'*** %s ***' % _('Show all')     self.entrydlg = revset.RevisionSetQuery(repo, self)   self.entrydlg.progress.connect(self.progress) @@ -246,8 +247,10 @@
  self._branchCombo.clear()   self._branchCombo.addItem(self._allBranchesLabel)   for branch in branches: - self._branchCombo.addItem(branch) - self._branchCombo.setItemData(self._branchCombo.count() - 1, branch, Qt.ToolTipRole) + self._branchCombo.addItem(hglib.tounicode(branch)) + self._branchCombo.setItemData(self._branchCombo.count() - 1, + hglib.tounicode(branch), + Qt.ToolTipRole)   self._branchLabel.setEnabled(self.filterEnabled and (len(branches) > 1 or self._abranchAction.isChecked()))   self._branchCombo.setEnabled(self.filterEnabled and (len(branches) > 1 or self._abranchAction.isChecked()))   self._branchReloading = False
 
123
124
125
126
 
127
128
129
 
 
 
130
131
132
 
 
133
134
135
 
123
124
125
 
126
127
128
 
129
130
131
132
133
 
134
135
136
137
138
@@ -123,13 +123,16 @@
  self.setBranch(branch)     def setBranch(self, branch=None, allparents=True): - self.filterbranch = branch + self.filterbranch = branch # unicode   self.invalidateCache()   if self.revset and self.filterbyrevset: - grapher = revision_grapher(self.repo, branch=branch, revset=self.revset) + grapher = revision_grapher(self.repo, + branch=hglib.fromunicode(branch), + revset=self.revset)   self.graph = Graph(self.repo, grapher, include_mq=False)   else: - grapher = revision_grapher(self.repo, branch=branch, + grapher = revision_grapher(self.repo, + branch=hglib.fromunicode(branch),   allparents=allparents)   self.graph = Graph(self.repo, grapher, include_mq=True)   self.rowcount = 0
 
705
706
707
708
709
710
 
711
712
713
 
705
706
707
 
708
 
709
710
711
712
@@ -705,9 +705,8 @@
  def setupModels(self):   # Filter revision set in case revisions were removed   self.revset = [r for r in self.revset if r < len(self.repo)] - branch = hglib.fromunicode(self.ubranch)   self.repomodel = HgRepoListModel(self.repo, self.repoview.colselect[0], - branch, self.revset, + self.ubranch, self.revset,   self.revsetfilter, self)   self.repomodel.filled.connect(self.modelFilled)   self.repomodel.loaded.connect(self.modelLoaded)