eric6/Plugins/VcsPlugins/vcsMercurial/StripExtension/strip.py

changeset 7759
51aa6c6b66f7
parent 7360
9190402e4505
child 7780
41420f82c0ac
equal deleted inserted replaced
7758:dd54d33d21d2 7759:51aa6c6b66f7
51 res = False 51 res = False
52 dlg = HgStripDialog(self.vcs.hgGetTagsList(repodir), 52 dlg = HgStripDialog(self.vcs.hgGetTagsList(repodir),
53 self.vcs.hgGetBranchesList(repodir), 53 self.vcs.hgGetBranchesList(repodir),
54 self.vcs.hgGetBookmarksList(repodir), 54 self.vcs.hgGetBookmarksList(repodir),
55 rev) 55 rev)
56 if dlg.exec_() == QDialog.Accepted: 56 if dlg.exec() == QDialog.Accepted:
57 rev, bookmark, force, noBackup, keep = dlg.getData() 57 rev, bookmark, force, noBackup, keep = dlg.getData()
58 58
59 args = self.vcs.initCommand("strip") 59 args = self.vcs.initCommand("strip")
60 if bookmark: 60 if bookmark:
61 args.append("--bookmark") 61 args.append("--bookmark")
72 dia = HgDialog( 72 dia = HgDialog(
73 self.tr("Stripping changesets from repository"), 73 self.tr("Stripping changesets from repository"),
74 self.vcs) 74 self.vcs)
75 res = dia.startProcess(args, repodir) 75 res = dia.startProcess(args, repodir)
76 if res: 76 if res:
77 dia.exec_() 77 dia.exec()
78 res = dia.hasAddOrDelete() 78 res = dia.hasAddOrDelete()
79 self.vcs.checkVCSStatus() 79 self.vcs.checkVCSStatus()
80 return res 80 return res

eric ide

mercurial