107 """ |
107 """ |
108 # find the root of the repo |
108 # find the root of the repo |
109 repodir = self.vcs.splitPath(name)[0] |
109 repodir = self.vcs.splitPath(name)[0] |
110 while not os.path.isdir(os.path.join(repodir, self.vcs.adminDir)): |
110 while not os.path.isdir(os.path.join(repodir, self.vcs.adminDir)): |
111 repodir = os.path.dirname(repodir) |
111 repodir = os.path.dirname(repodir) |
112 if repodir == os.sep: |
112 if os.path.splitdrive(repodir)[1] == os.sep: |
113 return |
113 return |
114 |
114 |
115 dlg = HgBookmarkDialog(HgBookmarkDialog.DEFINE_MODE, |
115 dlg = HgBookmarkDialog(HgBookmarkDialog.DEFINE_MODE, |
116 self.vcs.hgGetTagsList(repodir), |
116 self.vcs.hgGetTagsList(repodir), |
117 self.vcs.hgGetBranchesList(repodir), |
117 self.vcs.hgGetBranchesList(repodir), |
139 """ |
139 """ |
140 # find the root of the repo |
140 # find the root of the repo |
141 repodir = self.vcs.splitPath(name)[0] |
141 repodir = self.vcs.splitPath(name)[0] |
142 while not os.path.isdir(os.path.join(repodir, self.vcs.adminDir)): |
142 while not os.path.isdir(os.path.join(repodir, self.vcs.adminDir)): |
143 repodir = os.path.dirname(repodir) |
143 repodir = os.path.dirname(repodir) |
144 if repodir == os.sep: |
144 if os.path.splitdrive(repodir)[1] == os.sep: |
145 return |
145 return |
146 |
146 |
147 bookmark, ok = QInputDialog.getItem( |
147 bookmark, ok = QInputDialog.getItem( |
148 None, |
148 None, |
149 self.trUtf8("Delete Bookmark"), |
149 self.trUtf8("Delete Bookmark"), |
169 """ |
169 """ |
170 # find the root of the repo |
170 # find the root of the repo |
171 repodir = self.vcs.splitPath(name)[0] |
171 repodir = self.vcs.splitPath(name)[0] |
172 while not os.path.isdir(os.path.join(repodir, self.vcs.adminDir)): |
172 while not os.path.isdir(os.path.join(repodir, self.vcs.adminDir)): |
173 repodir = os.path.dirname(repodir) |
173 repodir = os.path.dirname(repodir) |
174 if repodir == os.sep: |
174 if os.path.splitdrive(repodir)[1] == os.sep: |
175 return |
175 return |
176 |
176 |
177 dlg = HgBookmarkRenameDialog(self.hgGetBookmarksList(repodir)) |
177 dlg = HgBookmarkRenameDialog(self.hgGetBookmarksList(repodir)) |
178 if dlg.exec_() == QDialog.Accepted: |
178 if dlg.exec_() == QDialog.Accepted: |
179 newName, oldName = dlg.getData() |
179 newName, oldName = dlg.getData() |
197 """ |
197 """ |
198 # find the root of the repo |
198 # find the root of the repo |
199 repodir = self.vcs.splitPath(name)[0] |
199 repodir = self.vcs.splitPath(name)[0] |
200 while not os.path.isdir(os.path.join(repodir, self.vcs.adminDir)): |
200 while not os.path.isdir(os.path.join(repodir, self.vcs.adminDir)): |
201 repodir = os.path.dirname(repodir) |
201 repodir = os.path.dirname(repodir) |
202 if repodir == os.sep: |
202 if os.path.splitdrive(repodir)[1] == os.sep: |
203 return |
203 return |
204 |
204 |
205 dlg = HgBookmarkDialog(HgBookmarkDialog.MOVE_MODE, |
205 dlg = HgBookmarkDialog(HgBookmarkDialog.MOVE_MODE, |
206 self.vcs.hgGetTagsList(repodir), |
206 self.vcs.hgGetTagsList(repodir), |
207 self.vcs.hgGetBranchesList(repodir), |
207 self.vcs.hgGetBranchesList(repodir), |
294 """ |
294 """ |
295 # find the root of the repo |
295 # find the root of the repo |
296 repodir = self.vcs.splitPath(name)[0] |
296 repodir = self.vcs.splitPath(name)[0] |
297 while not os.path.isdir(os.path.join(repodir, self.vcs.adminDir)): |
297 while not os.path.isdir(os.path.join(repodir, self.vcs.adminDir)): |
298 repodir = os.path.dirname(repodir) |
298 repodir = os.path.dirname(repodir) |
299 if repodir == os.sep: |
299 if os.path.splitdrive(repodir)[1] == os.sep: |
300 return |
300 return |
301 |
301 |
302 bookmarks = self.__getInOutBookmarks(repodir, True) |
302 bookmarks = self.__getInOutBookmarks(repodir, True) |
303 |
303 |
304 bookmark, ok = QInputDialog.getItem( |
304 bookmark, ok = QInputDialog.getItem( |
327 """ |
327 """ |
328 # find the root of the repo |
328 # find the root of the repo |
329 repodir = self.vcs.splitPath(name)[0] |
329 repodir = self.vcs.splitPath(name)[0] |
330 while not os.path.isdir(os.path.join(repodir, self.vcs.adminDir)): |
330 while not os.path.isdir(os.path.join(repodir, self.vcs.adminDir)): |
331 repodir = os.path.dirname(repodir) |
331 repodir = os.path.dirname(repodir) |
332 if repodir == os.sep: |
332 if os.path.splitdrive(repodir)[1] == os.sep: |
333 return |
333 return |
334 |
334 |
335 bookmarks = self.__getInOutBookmarks(repodir, False) |
335 bookmarks = self.__getInOutBookmarks(repodir, False) |
336 |
336 |
337 bookmark, ok = QInputDialog.getItem( |
337 bookmark, ok = QInputDialog.getItem( |