Plugins/VcsPlugins/vcsMercurial/hg.py

changeset 6462
58259e234dc9
parent 6461
48bf6c3f084f
child 6466
dac80ad0de75
equal deleted inserted replaced
6461:48bf6c3f084f 6462:58259e234dc9
2903 while not os.path.isdir(os.path.join(repodir, self.adminDir)): 2903 while not os.path.isdir(os.path.join(repodir, self.adminDir)):
2904 repodir = os.path.dirname(repodir) 2904 repodir = os.path.dirname(repodir)
2905 if os.path.splitdrive(repodir)[1] == os.sep: 2905 if os.path.splitdrive(repodir)[1] == os.sep:
2906 return 2906 return
2907 2907
2908 # TODO: Mercurial 4.7: add support for --bookmark flag
2909 from .HgExportDialog import HgExportDialog 2908 from .HgExportDialog import HgExportDialog
2910 dlg = HgExportDialog() 2909 dlg = HgExportDialog(self.hgGetBookmarksList(repodir),
2910 self.version >= (4, 7, 0))
2911 if dlg.exec_() == QDialog.Accepted: 2911 if dlg.exec_() == QDialog.Accepted:
2912 filePattern, revisions, switchParent, allText, noDates, git = \ 2912 filePattern, revisions, bookmark, switchParent, allText, noDates, \
2913 dlg.getParameters() 2913 git = dlg.getParameters()
2914 2914
2915 args = self.initCommand("export") 2915 args = self.initCommand("export")
2916 args.append("--output") 2916 args.append("--output")
2917 args.append(filePattern) 2917 args.append(filePattern)
2918 args.append("--verbose") 2918 args.append("--verbose")
2922 args.append("--text") 2922 args.append("--text")
2923 if noDates: 2923 if noDates:
2924 args.append("--nodates") 2924 args.append("--nodates")
2925 if git: 2925 if git:
2926 args.append("--git") 2926 args.append("--git")
2927 for rev in revisions: 2927 if bookmark:
2928 args.append(rev) 2928 args.append ("--bookmark")
2929 args.append(bookmark)
2930 else:
2931 for rev in revisions:
2932 args.append(rev)
2929 2933
2930 dia = HgDialog(self.tr("Export Patches"), self) 2934 dia = HgDialog(self.tr("Export Patches"), self)
2931 res = dia.startProcess(args, repodir) 2935 res = dia.startProcess(args, repodir)
2932 if res: 2936 if res:
2933 dia.exec_() 2937 dia.exec_()

eric ide

mercurial