Plugins/VcsPlugins/vcsMercurial/TransplantExtension/transplant.py

changeset 1318
6fa303bd65d6
parent 1249
77f836a883c1
child 1509
c0b5e693b0eb
equal deleted inserted replaced
1316:0bb67aced672 1318:6fa303bd65d6
38 """ 38 """
39 # find the root of the repo 39 # find the root of the repo
40 repodir = self.vcs.splitPath(path)[0] 40 repodir = self.vcs.splitPath(path)[0]
41 while not os.path.isdir(os.path.join(repodir, self.vcs.adminDir)): 41 while not os.path.isdir(os.path.join(repodir, self.vcs.adminDir)):
42 repodir = os.path.dirname(repodir) 42 repodir = os.path.dirname(repodir)
43 if repodir == os.sep: 43 if os.path.splitdrive(repodir)[1] == os.sep:
44 return False 44 return False
45 45
46 res = False 46 res = False
47 dlg = TransplantDialog(self.vcs.hgGetBranchesList(repodir)) 47 dlg = TransplantDialog(self.vcs.hgGetBranchesList(repodir))
48 if dlg.exec_() == QDialog.Accepted: 48 if dlg.exec_() == QDialog.Accepted:
86 """ 86 """
87 # find the root of the repo 87 # find the root of the repo
88 repodir = self.vcs.splitPath(path)[0] 88 repodir = self.vcs.splitPath(path)[0]
89 while not os.path.isdir(os.path.join(repodir, self.vcs.adminDir)): 89 while not os.path.isdir(os.path.join(repodir, self.vcs.adminDir)):
90 repodir = os.path.dirname(repodir) 90 repodir = os.path.dirname(repodir)
91 if repodir == os.sep: 91 if os.path.splitdrive(repodir)[1] == os.sep:
92 return 92 return
93 93
94 args = [] 94 args = []
95 args.append("transplant") 95 args.append("transplant")
96 args.append("--continue") 96 args.append("--continue")

eric ide

mercurial