eric6/Plugins/VcsPlugins/vcsSubversion/subversion.py

changeset 7759
51aa6c6b66f7
parent 7360
9190402e4505
child 7775
4a1db75550bd
equal deleted inserted replaced
7758:dd54d33d21d2 7759:51aa6c6b66f7
322 else: 322 else:
323 dia = SvnDialog( 323 dia = SvnDialog(
324 self.tr('Importing project into Subversion repository')) 324 self.tr('Importing project into Subversion repository'))
325 res = dia.startProcess(args, os.path.join(tmpDir, project)) 325 res = dia.startProcess(args, os.path.join(tmpDir, project))
326 if res: 326 if res:
327 dia.exec_() 327 dia.exec()
328 status = dia.normalExit() 328 status = dia.normalExit()
329 329
330 shutil.rmtree(tmpDir, True) 330 shutil.rmtree(tmpDir, True)
331 return status, False 331 return status, False
332 332
387 else: 387 else:
388 dia = SvnDialog( 388 dia = SvnDialog(
389 self.tr('Checking project out of Subversion repository')) 389 self.tr('Checking project out of Subversion repository'))
390 res = dia.startProcess(args) 390 res = dia.startProcess(args)
391 if res: 391 if res:
392 dia.exec_() 392 dia.exec()
393 return dia.normalExit() 393 return dia.normalExit()
394 394
395 def vcsExport(self, vcsDataDict, projectDir): 395 def vcsExport(self, vcsDataDict, projectDir):
396 """ 396 """
397 Public method used to export a directory from the Subversion 397 Public method used to export a directory from the Subversion
442 442
443 dia = SvnDialog( 443 dia = SvnDialog(
444 self.tr('Exporting project from Subversion repository')) 444 self.tr('Exporting project from Subversion repository'))
445 res = dia.startProcess(args) 445 res = dia.startProcess(args)
446 if res: 446 if res:
447 dia.exec_() 447 dia.exec()
448 return dia.normalExit() 448 return dia.normalExit()
449 449
450 def vcsCommit(self, name, message, noDialog=False): 450 def vcsCommit(self, name, message, noDialog=False):
451 """ 451 """
452 Public method used to make the change of a file/directory permanent 452 Public method used to make the change of a file/directory permanent
566 else: 566 else:
567 dia = SvnDialog( 567 dia = SvnDialog(
568 self.tr('Commiting changes to Subversion repository')) 568 self.tr('Commiting changes to Subversion repository'))
569 res = dia.startProcess(args, dname) 569 res = dia.startProcess(args, dname)
570 if res: 570 if res:
571 dia.exec_() 571 dia.exec()
572 self.committed.emit() 572 self.committed.emit()
573 self.checkVCSStatus() 573 self.checkVCSStatus()
574 574
575 def vcsUpdate(self, name, noDialog=False): 575 def vcsUpdate(self, name, noDialog=False):
576 """ 576 """
603 else: 603 else:
604 dia = SvnDialog( 604 dia = SvnDialog(
605 self.tr('Synchronizing with the Subversion repository')) 605 self.tr('Synchronizing with the Subversion repository'))
606 res = dia.startProcess(args, dname, True) 606 res = dia.startProcess(args, dname, True)
607 if res: 607 if res:
608 dia.exec_() 608 dia.exec()
609 res = dia.hasAddOrDelete() 609 res = dia.hasAddOrDelete()
610 self.checkVCSStatus() 610 self.checkVCSStatus()
611 return res 611 return res
612 612
613 def vcsAdd(self, name, isDir=False, noDialog=False): 613 def vcsAdd(self, name, isDir=False, noDialog=False):
703 dia = SvnDialog( 703 dia = SvnDialog(
704 self.tr('Adding files/directories to the Subversion' 704 self.tr('Adding files/directories to the Subversion'
705 ' repository')) 705 ' repository'))
706 res = dia.startProcess(args, wdir) 706 res = dia.startProcess(args, wdir)
707 if res: 707 if res:
708 dia.exec_() 708 dia.exec()
709 709
710 def vcsAddBinary(self, name, isDir=False): 710 def vcsAddBinary(self, name, isDir=False):
711 """ 711 """
712 Public method used to add a file/directory in binary mode to the 712 Public method used to add a file/directory in binary mode to the
713 Subversion repository. 713 Subversion repository.
794 794
795 dia = SvnDialog( 795 dia = SvnDialog(
796 self.tr('Adding directory trees to the Subversion repository')) 796 self.tr('Adding directory trees to the Subversion repository'))
797 res = dia.startProcess(args, dname) 797 res = dia.startProcess(args, dname)
798 if res: 798 if res:
799 dia.exec_() 799 dia.exec()
800 800
801 def vcsRemove(self, name, project=False, noDialog=False): 801 def vcsRemove(self, name, project=False, noDialog=False):
802 """ 802 """
803 Public method used to remove a file/directory from the Subversion 803 Public method used to remove a file/directory from the Subversion
804 repository. 804 repository.
830 dia = SvnDialog( 830 dia = SvnDialog(
831 self.tr('Removing files/directories from the Subversion' 831 self.tr('Removing files/directories from the Subversion'
832 ' repository')) 832 ' repository'))
833 res = dia.startProcess(args) 833 res = dia.startProcess(args)
834 if res: 834 if res:
835 dia.exec_() 835 dia.exec()
836 res = dia.normalExit() 836 res = dia.normalExit()
837 837
838 return res 838 return res
839 839
840 def vcsMove(self, name, project, target=None, noDialog=False): 840 def vcsMove(self, name, project, target=None, noDialog=False):
860 force = True 860 force = True
861 accepted = True 861 accepted = True
862 else: 862 else:
863 from .SvnCopyDialog import SvnCopyDialog 863 from .SvnCopyDialog import SvnCopyDialog
864 dlg = SvnCopyDialog(name, None, True, force) 864 dlg = SvnCopyDialog(name, None, True, force)
865 accepted = (dlg.exec_() == QDialog.Accepted) 865 accepted = (dlg.exec() == QDialog.Accepted)
866 if accepted: 866 if accepted:
867 target, force = dlg.getData() 867 target, force = dlg.getData()
868 if not target: 868 if not target:
869 return False 869 return False
870 870
891 else: 891 else:
892 dia = SvnDialog(self.tr('Moving {0}') 892 dia = SvnDialog(self.tr('Moving {0}')
893 .format(name)) 893 .format(name))
894 res = dia.startProcess(args) 894 res = dia.startProcess(args)
895 if res: 895 if res:
896 dia.exec_() 896 dia.exec()
897 res = dia.normalExit() 897 res = dia.normalExit()
898 if res and not rx_prot.exactMatch(target): 898 if res and not rx_prot.exactMatch(target):
899 if target.startswith(project.getProjectPath()): 899 if target.startswith(project.getProjectPath()):
900 if isDir: 900 if isDir:
901 project.moveDirectory(name, target) 901 project.moveDirectory(name, target)
981 else: 981 else:
982 url = self.svnNormalizeURL(reposURL) 982 url = self.svnNormalizeURL(reposURL)
983 from .SvnTagDialog import SvnTagDialog 983 from .SvnTagDialog import SvnTagDialog
984 dlg = SvnTagDialog(self.allTagsBranchesList, url, 984 dlg = SvnTagDialog(self.allTagsBranchesList, url,
985 self.otherData["standardLayout"]) 985 self.otherData["standardLayout"])
986 if dlg.exec_() == QDialog.Accepted: 986 if dlg.exec() == QDialog.Accepted:
987 tag, tagOp = dlg.getParameters() 987 tag, tagOp = dlg.getParameters()
988 if tag in self.allTagsBranchesList: 988 if tag in self.allTagsBranchesList:
989 self.allTagsBranchesList.remove(tag) 989 self.allTagsBranchesList.remove(tag)
990 self.allTagsBranchesList.insert(0, tag) 990 self.allTagsBranchesList.insert(0, tag)
991 else: 991 else:
1030 1030
1031 dia = SvnDialog(self.tr('Tagging {0} in the Subversion repository') 1031 dia = SvnDialog(self.tr('Tagging {0} in the Subversion repository')
1032 .format(name)) 1032 .format(name))
1033 res = dia.startProcess(args) 1033 res = dia.startProcess(args)
1034 if res: 1034 if res:
1035 dia.exec_() 1035 dia.exec()
1036 1036
1037 def vcsRevert(self, name): 1037 def vcsRevert(self, name):
1038 """ 1038 """
1039 Public method used to revert changes made to a file/directory. 1039 Public method used to revert changes made to a file/directory.
1040 1040
1062 self.parent(), 1062 self.parent(),
1063 self.tr("Revert changes"), 1063 self.tr("Revert changes"),
1064 self.tr("Do you really want to revert all changes to" 1064 self.tr("Do you really want to revert all changes to"
1065 " these files or directories?"), 1065 " these files or directories?"),
1066 names) 1066 names)
1067 yes = dlg.exec_() == QDialog.Accepted 1067 yes = dlg.exec() == QDialog.Accepted
1068 else: 1068 else:
1069 yes = E5MessageBox.yesNo( 1069 yes = E5MessageBox.yesNo(
1070 None, 1070 None,
1071 self.tr("Revert changes"), 1071 self.tr("Revert changes"),
1072 self.tr("""Do you really want to revert all changes of""" 1072 self.tr("""Do you really want to revert all changes of"""
1073 """ the project?""")) 1073 """ the project?"""))
1074 if yes: 1074 if yes:
1075 dia = SvnDialog(self.tr('Reverting changes')) 1075 dia = SvnDialog(self.tr('Reverting changes'))
1076 res = dia.startProcess(args) 1076 res = dia.startProcess(args)
1077 if res: 1077 if res:
1078 dia.exec_() 1078 dia.exec()
1079 self.checkVCSStatus() 1079 self.checkVCSStatus()
1080 1080
1081 def vcsSwitch(self, name): 1081 def vcsSwitch(self, name):
1082 """ 1082 """
1083 Public method used to switch a directory to a different tag/branch. 1083 Public method used to switch a directory to a different tag/branch.
1103 else: 1103 else:
1104 url = self.svnNormalizeURL(reposURL) 1104 url = self.svnNormalizeURL(reposURL)
1105 from .SvnSwitchDialog import SvnSwitchDialog 1105 from .SvnSwitchDialog import SvnSwitchDialog
1106 dlg = SvnSwitchDialog(self.allTagsBranchesList, url, 1106 dlg = SvnSwitchDialog(self.allTagsBranchesList, url,
1107 self.otherData["standardLayout"]) 1107 self.otherData["standardLayout"])
1108 if dlg.exec_() == QDialog.Accepted: 1108 if dlg.exec() == QDialog.Accepted:
1109 tag, tagType = dlg.getParameters() 1109 tag, tagType = dlg.getParameters()
1110 if tag in self.allTagsBranchesList: 1110 if tag in self.allTagsBranchesList:
1111 self.allTagsBranchesList.remove(tag) 1111 self.allTagsBranchesList.remove(tag)
1112 self.allTagsBranchesList.insert(0, tag) 1112 self.allTagsBranchesList.insert(0, tag)
1113 else: 1113 else:
1148 1148
1149 dia = SvnDialog(self.tr('Switching to {0}') 1149 dia = SvnDialog(self.tr('Switching to {0}')
1150 .format(tn)) 1150 .format(tn))
1151 res = dia.startProcess(args, setLanguage=True) 1151 res = dia.startProcess(args, setLanguage=True)
1152 if res: 1152 if res:
1153 dia.exec_() 1153 dia.exec()
1154 res = dia.hasAddOrDelete() 1154 res = dia.hasAddOrDelete()
1155 self.checkVCSStatus() 1155 self.checkVCSStatus()
1156 return res 1156 return res
1157 1157
1158 def vcsMerge(self, name): 1158 def vcsMerge(self, name):
1169 del opts[opts.index('--force')] 1169 del opts[opts.index('--force')]
1170 1170
1171 from .SvnMergeDialog import SvnMergeDialog 1171 from .SvnMergeDialog import SvnMergeDialog
1172 dlg = SvnMergeDialog( 1172 dlg = SvnMergeDialog(
1173 self.mergeList[0], self.mergeList[1], self.mergeList[2], force) 1173 self.mergeList[0], self.mergeList[1], self.mergeList[2], force)
1174 if dlg.exec_() == QDialog.Accepted: 1174 if dlg.exec() == QDialog.Accepted:
1175 urlrev1, urlrev2, target, force = dlg.getParameters() 1175 urlrev1, urlrev2, target, force = dlg.getParameters()
1176 else: 1176 else:
1177 return 1177 return
1178 1178
1179 # remember URL or revision 1179 # remember URL or revision
1212 args.append(fname) 1212 args.append(fname)
1213 1213
1214 dia = SvnDialog(self.tr('Merging {0}').format(name)) 1214 dia = SvnDialog(self.tr('Merging {0}').format(name))
1215 res = dia.startProcess(args, dname) 1215 res = dia.startProcess(args, dname)
1216 if res: 1216 if res:
1217 dia.exec_() 1217 dia.exec()
1218 1218
1219 def vcsRegisteredState(self, name): 1219 def vcsRegisteredState(self, name):
1220 """ 1220 """
1221 Public method used to get the registered state of a file in the vcs. 1221 Public method used to get the registered state of a file in the vcs.
1222 1222
1479 1479
1480 dia = SvnDialog(self.tr('Cleaning up {0}') 1480 dia = SvnDialog(self.tr('Cleaning up {0}')
1481 .format(name)) 1481 .format(name))
1482 res = dia.startProcess(args) 1482 res = dia.startProcess(args)
1483 if res: 1483 if res:
1484 dia.exec_() 1484 dia.exec()
1485 1485
1486 def vcsCommandLine(self, name): 1486 def vcsCommandLine(self, name):
1487 """ 1487 """
1488 Public method used to execute arbitrary subversion commands. 1488 Public method used to execute arbitrary subversion commands.
1489 1489
1490 @param name directory name of the working directory (string) 1490 @param name directory name of the working directory (string)
1491 """ 1491 """
1492 from .SvnCommandDialog import SvnCommandDialog 1492 from .SvnCommandDialog import SvnCommandDialog
1493 dlg = SvnCommandDialog(self.commandHistory, self.wdHistory, name) 1493 dlg = SvnCommandDialog(self.commandHistory, self.wdHistory, name)
1494 if dlg.exec_() == QDialog.Accepted: 1494 if dlg.exec() == QDialog.Accepted:
1495 command, wd = dlg.getData() 1495 command, wd = dlg.getData()
1496 commandList = Utilities.parseOptionString(command) 1496 commandList = Utilities.parseOptionString(command)
1497 1497
1498 # This moves any previous occurrence of these arguments to the head 1498 # This moves any previous occurrence of these arguments to the head
1499 # of the list. 1499 # of the list.
1508 self.addArguments(args, commandList) 1508 self.addArguments(args, commandList)
1509 1509
1510 dia = SvnDialog(self.tr('Subversion command')) 1510 dia = SvnDialog(self.tr('Subversion command'))
1511 res = dia.startProcess(args, wd) 1511 res = dia.startProcess(args, wd)
1512 if res: 1512 if res:
1513 dia.exec_() 1513 dia.exec()
1514 1514
1515 def vcsOptionsDialog(self, project, archive, editable=False, parent=None): 1515 def vcsOptionsDialog(self, project, archive, editable=False, parent=None):
1516 """ 1516 """
1517 Public method to get a dialog to enter repository info. 1517 Public method to get a dialog to enter repository info.
1518 1518
1683 args.append(name) 1683 args.append(name)
1684 1684
1685 dia = SvnDialog(self.tr('Resolving conficts')) 1685 dia = SvnDialog(self.tr('Resolving conficts'))
1686 res = dia.startProcess(args) 1686 res = dia.startProcess(args)
1687 if res: 1687 if res:
1688 dia.exec_() 1688 dia.exec()
1689 self.checkVCSStatus() 1689 self.checkVCSStatus()
1690 1690
1691 def svnCopy(self, name, project): 1691 def svnCopy(self, name, project):
1692 """ 1692 """
1693 Public method used to copy a file/directory. 1693 Public method used to copy a file/directory.
1698 """ 1698 """
1699 from .SvnCopyDialog import SvnCopyDialog 1699 from .SvnCopyDialog import SvnCopyDialog
1700 rx_prot = QRegExp('(file:|svn:|svn+ssh:|http:|https:).+') 1700 rx_prot = QRegExp('(file:|svn:|svn+ssh:|http:|https:).+')
1701 dlg = SvnCopyDialog(name) 1701 dlg = SvnCopyDialog(name)
1702 res = False 1702 res = False
1703 if dlg.exec_() == QDialog.Accepted: 1703 if dlg.exec() == QDialog.Accepted:
1704 target, force = dlg.getData() 1704 target, force = dlg.getData()
1705 1705
1706 args = [] 1706 args = []
1707 args.append('copy') 1707 args.append('copy')
1708 self.addArguments(args, self.options['global']) 1708 self.addArguments(args, self.options['global'])
1715 1715
1716 dia = SvnDialog(self.tr('Copying {0}') 1716 dia = SvnDialog(self.tr('Copying {0}')
1717 .format(name)) 1717 .format(name))
1718 res = dia.startProcess(args) 1718 res = dia.startProcess(args)
1719 if res: 1719 if res:
1720 dia.exec_() 1720 dia.exec()
1721 res = dia.normalExit() 1721 res = dia.normalExit()
1722 if ( 1722 if (
1723 res and 1723 res and
1724 not rx_prot.exactMatch(target) and 1724 not rx_prot.exactMatch(target) and
1725 target.startswith(project.getProjectPath()) 1725 target.startswith(project.getProjectPath())
1751 @param name file/directory name (string or list of strings) 1751 @param name file/directory name (string or list of strings)
1752 @param recursive flag indicating a recursive list is requested 1752 @param recursive flag indicating a recursive list is requested
1753 """ 1753 """
1754 from .SvnPropSetDialog import SvnPropSetDialog 1754 from .SvnPropSetDialog import SvnPropSetDialog
1755 dlg = SvnPropSetDialog() 1755 dlg = SvnPropSetDialog()
1756 if dlg.exec_() == QDialog.Accepted: 1756 if dlg.exec() == QDialog.Accepted:
1757 propName, fileFlag, propValue = dlg.getData() 1757 propName, fileFlag, propValue = dlg.getData()
1758 if not propName: 1758 if not propName:
1759 E5MessageBox.critical( 1759 E5MessageBox.critical(
1760 self.__ui, 1760 self.__ui,
1761 self.tr("Subversion Set Property"), 1761 self.tr("Subversion Set Property"),
1780 args.append(fname) 1780 args.append(fname)
1781 1781
1782 dia = SvnDialog(self.tr('Subversion Set Property')) 1782 dia = SvnDialog(self.tr('Subversion Set Property'))
1783 res = dia.startProcess(args, dname) 1783 res = dia.startProcess(args, dname)
1784 if res: 1784 if res:
1785 dia.exec_() 1785 dia.exec()
1786 1786
1787 def svnDelProp(self, name, recursive=False): 1787 def svnDelProp(self, name, recursive=False):
1788 """ 1788 """
1789 Public method used to delete a property of a file/directory. 1789 Public method used to delete a property of a file/directory.
1790 1790
1822 args.append(fname) 1822 args.append(fname)
1823 1823
1824 dia = SvnDialog(self.tr('Subversion Delete Property')) 1824 dia = SvnDialog(self.tr('Subversion Delete Property'))
1825 res = dia.startProcess(args, dname) 1825 res = dia.startProcess(args, dname)
1826 if res: 1826 if res:
1827 dia.exec_() 1827 dia.exec()
1828 1828
1829 def svnListTagBranch(self, path, tags=True): 1829 def svnListTagBranch(self, path, tags=True):
1830 """ 1830 """
1831 Public method used to list the available tags or branches. 1831 Public method used to list the available tags or branches.
1832 1832
1898 project = e5App().getObject("Project") 1898 project = e5App().getObject("Project")
1899 if nam == project.ppath and not project.saveAllScripts(): 1899 if nam == project.ppath and not project.saveAllScripts():
1900 return 1900 return
1901 from .SvnRevisionSelectionDialog import SvnRevisionSelectionDialog 1901 from .SvnRevisionSelectionDialog import SvnRevisionSelectionDialog
1902 dlg = SvnRevisionSelectionDialog() 1902 dlg = SvnRevisionSelectionDialog()
1903 if dlg.exec_() == QDialog.Accepted: 1903 if dlg.exec() == QDialog.Accepted:
1904 revisions = dlg.getRevisions() 1904 revisions = dlg.getRevisions()
1905 from .SvnDiffDialog import SvnDiffDialog 1905 from .SvnDiffDialog import SvnDiffDialog
1906 self.diff = SvnDiffDialog(self) 1906 self.diff = SvnDiffDialog(self)
1907 self.diff.show() 1907 self.diff.show()
1908 self.diff.start(name, revisions) 1908 self.diff.start(name, revisions)
1938 dname = self.splitPath(names[0])[0] 1938 dname = self.splitPath(names[0])[0]
1939 1939
1940 from .SvnUrlSelectionDialog import SvnUrlSelectionDialog 1940 from .SvnUrlSelectionDialog import SvnUrlSelectionDialog
1941 dlg = SvnUrlSelectionDialog(self, self.tagsList, self.branchesList, 1941 dlg = SvnUrlSelectionDialog(self, self.tagsList, self.branchesList,
1942 dname) 1942 dname)
1943 if dlg.exec_() == QDialog.Accepted: 1943 if dlg.exec() == QDialog.Accepted:
1944 urls, summary = dlg.getURLs() 1944 urls, summary = dlg.getURLs()
1945 from .SvnDiffDialog import SvnDiffDialog 1945 from .SvnDiffDialog import SvnDiffDialog
1946 self.diff = SvnDiffDialog(self) 1946 self.diff = SvnDiffDialog(self)
1947 self.diff.show() 1947 self.diff.show()
1948 QApplication.processEvents() 1948 QApplication.processEvents()
2005 raise ValueError("Wrong parameter type") 2005 raise ValueError("Wrong parameter type")
2006 2006
2007 if extended: 2007 if extended:
2008 from .SvnRevisionSelectionDialog import SvnRevisionSelectionDialog 2008 from .SvnRevisionSelectionDialog import SvnRevisionSelectionDialog
2009 dlg = SvnRevisionSelectionDialog() 2009 dlg = SvnRevisionSelectionDialog()
2010 if dlg.exec_() == QDialog.Accepted: 2010 if dlg.exec() == QDialog.Accepted:
2011 rev1, rev2 = dlg.getRevisions() 2011 rev1, rev2 = dlg.getRevisions()
2012 if rev1 == "WORKING": 2012 if rev1 == "WORKING":
2013 rev1 = "" 2013 rev1 = ""
2014 if rev2 == "WORKING": 2014 if rev2 == "WORKING":
2015 rev2 = "" 2015 rev2 = ""
2099 2099
2100 dia = SvnDialog( 2100 dia = SvnDialog(
2101 self.tr('Locking in the Subversion repository'), parent) 2101 self.tr('Locking in the Subversion repository'), parent)
2102 res = dia.startProcess(args, dname) 2102 res = dia.startProcess(args, dname)
2103 if res: 2103 if res:
2104 dia.exec_() 2104 dia.exec()
2105 2105
2106 def svnUnlock(self, name, breakIt=False, parent=None): 2106 def svnUnlock(self, name, breakIt=False, parent=None):
2107 """ 2107 """
2108 Public method used to unlock a file in the Subversion repository. 2108 Public method used to unlock a file in the Subversion repository.
2109 2109
2127 2127
2128 dia = SvnDialog( 2128 dia = SvnDialog(
2129 self.tr('Unlocking in the Subversion repository'), parent) 2129 self.tr('Unlocking in the Subversion repository'), parent)
2130 res = dia.startProcess(args, dname) 2130 res = dia.startProcess(args, dname)
2131 if res: 2131 if res:
2132 dia.exec_() 2132 dia.exec()
2133 2133
2134 def svnRelocate(self, projectPath): 2134 def svnRelocate(self, projectPath):
2135 """ 2135 """
2136 Public method to relocate the working copy to a new repository URL. 2136 Public method to relocate the working copy to a new repository URL.
2137 2137
2138 @param projectPath path name of the project (string) 2138 @param projectPath path name of the project (string)
2139 """ 2139 """
2140 from .SvnRelocateDialog import SvnRelocateDialog 2140 from .SvnRelocateDialog import SvnRelocateDialog
2141 currUrl = self.svnGetReposName(projectPath) 2141 currUrl = self.svnGetReposName(projectPath)
2142 dlg = SvnRelocateDialog(currUrl) 2142 dlg = SvnRelocateDialog(currUrl)
2143 if dlg.exec_() == QDialog.Accepted: 2143 if dlg.exec() == QDialog.Accepted:
2144 newUrl, inside = dlg.getData() 2144 newUrl, inside = dlg.getData()
2145 args = [] 2145 args = []
2146 args.append('switch') 2146 args.append('switch')
2147 if not inside: 2147 if not inside:
2148 args.append('--relocate') 2148 args.append('--relocate')
2151 args.append(projectPath) 2151 args.append(projectPath)
2152 2152
2153 dia = SvnDialog(self.tr('Relocating')) 2153 dia = SvnDialog(self.tr('Relocating'))
2154 res = dia.startProcess(args) 2154 res = dia.startProcess(args)
2155 if res: 2155 if res:
2156 dia.exec_() 2156 dia.exec()
2157 2157
2158 def svnRepoBrowser(self, projectPath=None): 2158 def svnRepoBrowser(self, projectPath=None):
2159 """ 2159 """
2160 Public method to open the repository browser. 2160 Public method to open the repository browser.
2161 2161
2204 args.append(fname) 2204 args.append(fname)
2205 2205
2206 dia = SvnDialog(self.tr('Remove from changelist')) 2206 dia = SvnDialog(self.tr('Remove from changelist'))
2207 res = dia.startProcess(args, dname) 2207 res = dia.startProcess(args, dname)
2208 if res: 2208 if res:
2209 dia.exec_() 2209 dia.exec()
2210 2210
2211 def svnAddToChangelist(self, names): 2211 def svnAddToChangelist(self, names):
2212 """ 2212 """
2213 Public method to add a file or directory to a changelist. 2213 Public method to add a file or directory to a changelist.
2214 2214
2239 args.append(fname) 2239 args.append(fname)
2240 2240
2241 dia = SvnDialog(self.tr('Remove from changelist')) 2241 dia = SvnDialog(self.tr('Remove from changelist'))
2242 res = dia.startProcess(args, dname) 2242 res = dia.startProcess(args, dname)
2243 if res: 2243 if res:
2244 dia.exec_() 2244 dia.exec()
2245 2245
2246 def svnShowChangelists(self, path): 2246 def svnShowChangelists(self, path):
2247 """ 2247 """
2248 Public method used to inspect the change lists defined for the project. 2248 Public method used to inspect the change lists defined for the project.
2249 2249
2302 args.append(".") 2302 args.append(".")
2303 2303
2304 dia = SvnDialog(self.tr('Upgrade')) 2304 dia = SvnDialog(self.tr('Upgrade'))
2305 res = dia.startProcess(args, path) 2305 res = dia.startProcess(args, path)
2306 if res: 2306 if res:
2307 dia.exec_() 2307 dia.exec()
2308 2308
2309 ########################################################################### 2309 ###########################################################################
2310 ## Private Subversion specific methods are below. 2310 ## Private Subversion specific methods are below.
2311 ########################################################################### 2311 ###########################################################################
2312 2312

eric ide

mercurial