Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.9, 1.9.1, and 1.9.2

repowidget: do not update fileview etc. to working copy

fileview, revpanel, message and filelistmodel have no business with
the working copy anymore -- now that we use the commit widget.

This also solves the problem where there is no working
copy at all (after a 'hg up -C null'), which produced tracebacks
in various code places.

Changeset 3092f7b071d8

Parent 50188fc14023

by Adrian Buehlmann

Changes to one file · Browse files at 3092f7b071d8 Showing diff from parent 50188fc14023 Diff from another changeset...

 
426
427
428
429
430
431
432
433
434
435
436
437
438
 
 
 
 
 
 
 
 
 
439
440
441
 
426
427
428
 
 
 
 
429
430
 
431
 
 
432
433
434
435
436
437
438
439
440
441
442
443
@@ -426,16 +426,18 @@
  """   if self.repomodel.graph:   ctx = self.repomodel.repo.changectx(rev) - self.fileview.setContext(ctx) - self.revpanel.update(ctx.rev()) - self.message.displayRevision(ctx, None) - self.filelistmodel.setSelectedRev(ctx)   if len(self.filelistmodel):   self.tableView_filelist.selectRow(0) - index = 0   if ctx.rev() is None: - index = 1 - self.stackedWidget.setCurrentIndex(index) + # working copy + curridx = 1 + else: + self.fileview.setContext(ctx) + self.revpanel.update(ctx.rev()) + self.message.displayRevision(ctx, None) + self.filelistmodel.setSelectedRev(ctx) + curridx = 0 + self.stackedWidget.setCurrentIndex(curridx)     def goto(self, rev):   if len(self.repoview.model().graph):