Plugins/VcsPlugins/vcsMercurial/PurgeExtension/purge.py

changeset 1318
6fa303bd65d6
parent 1249
77f836a883c1
child 1509
c0b5e693b0eb
equal deleted inserted replaced
1316:0bb67aced672 1318:6fa303bd65d6
88 """ 88 """
89 # find the root of the repo 89 # find the root of the repo
90 repodir = self.vcs.splitPath(name)[0] 90 repodir = self.vcs.splitPath(name)[0]
91 while not os.path.isdir(os.path.join(repodir, self.vcs.adminDir)): 91 while not os.path.isdir(os.path.join(repodir, self.vcs.adminDir)):
92 repodir = os.path.dirname(repodir) 92 repodir = os.path.dirname(repodir)
93 if repodir == os.sep: 93 if os.path.splitdrive(repodir)[1] == os.sep:
94 return False 94 return False
95 95
96 if all: 96 if all:
97 title = self.trUtf8("Purge All Files") 97 title = self.trUtf8("Purge All Files")
98 message = self.trUtf8("""Do really want to delete all files not tracked by""" 98 message = self.trUtf8("""Do really want to delete all files not tracked by"""
124 """ 124 """
125 # find the root of the repo 125 # find the root of the repo
126 repodir = self.vcs.splitPath(name)[0] 126 repodir = self.vcs.splitPath(name)[0]
127 while not os.path.isdir(os.path.join(repodir, self.vcs.adminDir)): 127 while not os.path.isdir(os.path.join(repodir, self.vcs.adminDir)):
128 repodir = os.path.dirname(repodir) 128 repodir = os.path.dirname(repodir)
129 if repodir == os.sep: 129 if os.path.splitdrive(repodir)[1] == os.sep:
130 return False 130 return False
131 131
132 entries = self.__getEntries(repodir, all) 132 entries = self.__getEntries(repodir, all)
133 self.purgeListDialog = HgPurgeListDialog(entries) 133 self.purgeListDialog = HgPurgeListDialog(entries)
134 self.purgeListDialog.show() 134 self.purgeListDialog.show()

eric ide

mercurial