Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.9, 0.9.1, and 0.9.1.1

history: add 'pull to here' menu option in preview mode

Allows incremental pulling of changes from the incoming bundle. Bundle
overlay mode is not ended until the user hits 'Accept' or 'Reject'

Changeset e934183f6f76

Parent 6c36e4400f01

by Steve Borho

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

 
575
576
577
 
 
578
579
580
 
1407
1408
1409
 
 
 
 
 
 
 
 
 
 
 
 
 
1410
1411
1412
 
575
576
577
578
579
580
581
582
 
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
@@ -575,6 +575,8 @@
  m.append(create_menu(_('diff to local'), self.vdiff_local))   m.append(create_menu(_('_copy hash'), self.copy_hash))   if self.bfile: + if self.currevid >= len(self.repo) - self.npreviews: + m.append(create_menu(_('pull to here'), self.pull_to))   m.show_all()   return m   @@ -1407,6 +1409,19 @@
  statopts)   dialog.display()   + def pull_to(self, menuitem): + cmdline = ['hg', 'pull', '--rev', str(self.currevid), self.bfile] + dlg = hgcmd.CmdDialog(cmdline) + dlg.show_all() + dlg.run() + dlg.hide() + curtip = len(hg.repository(self.ui, self.repo.root)) + self.repo = hg.repository(self.ui, path=self.bfile) + self.graphview.set_repo(self.repo, self.stbar) + self.changeview.repo = self.repo + self.npreviews = len(self.repo) - curtip + self.reload_log() +   def copy_hash(self, menuitem):   hash = self.repo[self.currevid].hex()   clipboard = gtk.Clipboard()