Plugins/VcsPlugins/vcsMercurial/GpgExtension/gpg.py

changeset 1318
6fa303bd65d6
parent 1249
77f836a883c1
child 1509
c0b5e693b0eb
equal deleted inserted replaced
1316:0bb67aced672 1318:6fa303bd65d6
60 """ 60 """
61 # find the root of the repo 61 # find the root of the repo
62 repodir = self.vcs.splitPath(path)[0] 62 repodir = self.vcs.splitPath(path)[0]
63 while not os.path.isdir(os.path.join(repodir, self.vcs.adminDir)): 63 while not os.path.isdir(os.path.join(repodir, self.vcs.adminDir)):
64 repodir = os.path.dirname(repodir) 64 repodir = os.path.dirname(repodir)
65 if repodir == os.sep: 65 if os.path.splitdrive(repodir)[1] == os.sep:
66 return 66 return
67 67
68 if rev is None: 68 if rev is None:
69 if self.vcs.isExtensionActive("bookmarks"): 69 if self.vcs.isExtensionActive("bookmarks"):
70 bookmarksList = \ 70 bookmarksList = \
97 """ 97 """
98 # find the root of the repo 98 # find the root of the repo
99 repodir = self.vcs.splitPath(path)[0] 99 repodir = self.vcs.splitPath(path)[0]
100 while not os.path.isdir(os.path.join(repodir, self.vcs.adminDir)): 100 while not os.path.isdir(os.path.join(repodir, self.vcs.adminDir)):
101 repodir = os.path.dirname(repodir) 101 repodir = os.path.dirname(repodir)
102 if repodir == os.sep: 102 if os.path.splitdrive(repodir)[1] == os.sep:
103 return 103 return
104 104
105 if self.vcs.isExtensionActive("bookmarks"): 105 if self.vcs.isExtensionActive("bookmarks"):
106 bookmarksList = \ 106 bookmarksList = \
107 self.vcs.getExtensionObject("bookmarks").hgGetBookmarksList(repodir) 107 self.vcs.getExtensionObject("bookmarks").hgGetBookmarksList(repodir)

eric ide

mercurial