1944 vcsSystem = vcsData[0][1] |
1944 vcsSystem = vcsData[0][1] |
1945 self.pdata["VCS"] = [vcsSystem] |
1945 self.pdata["VCS"] = [vcsSystem] |
1946 self.vcs = self.initVCS() |
1946 self.vcs = self.initVCS() |
1947 self.setDirty(True) |
1947 self.setDirty(True) |
1948 if self.vcs is not None: |
1948 if self.vcs is not None: |
1949 # TODO: ensure a minimal VCS configuration (mgmt dir excluded) |
|
1950 # edit VCS command options |
1949 # edit VCS command options |
1951 vcores = E5MessageBox.yesNo(self.ui, |
1950 vcores = E5MessageBox.yesNo(self.ui, |
1952 self.trUtf8("New Project"), |
1951 self.trUtf8("New Project"), |
1953 self.trUtf8("""Would you like to edit the VCS""" |
1952 self.trUtf8("""Would you like to edit the VCS""" |
1954 """ command options?""")) |
1953 """ command options?""")) |
2002 else: |
2001 else: |
2003 self.pdata["VCS"] = ['None'] |
2002 self.pdata["VCS"] = ['None'] |
2004 self.vcs = self.initVCS() |
2003 self.vcs = self.initVCS() |
2005 self.setDirty(True) |
2004 self.setDirty(True) |
2006 if self.vcs is not None: |
2005 if self.vcs is not None: |
2007 # TODO: ensure a minimal VCS configuration (mgmt dir excluded) |
|
2008 # edit VCS command options |
2006 # edit VCS command options |
2009 vcores = E5MessageBox.yesNo(self.ui, |
2007 vcores = E5MessageBox.yesNo(self.ui, |
2010 self.trUtf8("New Project"), |
2008 self.trUtf8("New Project"), |
2011 self.trUtf8("""Would you like to edit the VCS command""" |
2009 self.trUtf8("""Would you like to edit the VCS command""" |
2012 """ options?""")) |
2010 """ options?""")) |
3736 .format(vcsSystem, msg)) |
3734 .format(vcsSystem, msg)) |
3737 vcs = None |
3735 vcs = None |
3738 if forProject: |
3736 if forProject: |
3739 self.pdata["VCS"][0] = 'None' |
3737 self.pdata["VCS"][0] = 'None' |
3740 self.setDirty(True) |
3738 self.setDirty(True) |
|
3739 else: |
|
3740 vcs.vcsInitConfig(self) |
3741 |
3741 |
3742 if vcs and forProject: |
3742 if vcs and forProject: |
3743 # set the vcs options |
3743 # set the vcs options |
3744 try: |
3744 try: |
3745 vcsopt = copy.deepcopy(self.pdata["VCSOPTIONS"][0]) |
3745 vcsopt = copy.deepcopy(self.pdata["VCSOPTIONS"][0]) |