Plugins/VcsPlugins/vcsMercurial/hg.py

changeset 5345
c7c3f9de2d1c
parent 5330
381665763704
child 5389
9b1c800daff3
equal deleted inserted replaced
5344:cd3a3d0d7823 5345:c7c3f9de2d1c
947 947
948 from .HgTagDialog import HgTagDialog 948 from .HgTagDialog import HgTagDialog
949 dlg = HgTagDialog(self.hgGetTagsList(repodir, withType=True), 949 dlg = HgTagDialog(self.hgGetTagsList(repodir, withType=True),
950 revision, tagName) 950 revision, tagName)
951 if dlg.exec_() == QDialog.Accepted: 951 if dlg.exec_() == QDialog.Accepted:
952 tag, revision, tagOp = dlg.getParameters() 952 tag, revision, tagOp, force = dlg.getParameters()
953 else: 953 else:
954 return False 954 return False
955 955
956 args = self.initCommand("tag") 956 args = self.initCommand("tag")
957 msgPart = "" 957 msgPart = ""
964 args.append('--remove') 964 args.append('--remove')
965 if tagOp in [HgTagDialog.CreateGlobalTag, HgTagDialog.CreateLocalTag]: 965 if tagOp in [HgTagDialog.CreateGlobalTag, HgTagDialog.CreateLocalTag]:
966 if revision: 966 if revision:
967 args.append("--rev") 967 args.append("--rev")
968 args.append(revision) 968 args.append(revision)
969 if force:
970 args.append("--force")
969 args.append('--message') 971 args.append('--message')
970 if tagOp in [HgTagDialog.CreateGlobalTag, HgTagDialog.CreateLocalTag]: 972 if tagOp in [HgTagDialog.CreateGlobalTag, HgTagDialog.CreateLocalTag]:
971 tag = tag.strip().replace(" ", "_") 973 tag = tag.strip().replace(" ", "_")
972 args.append("Created {1}tag <{0}>.".format(tag, msgPart)) 974 args.append("Created {1}tag <{0}>.".format(tag, msgPart))
973 else: 975 else:

eric ide

mercurial