VCS/ProjectBrowserHelper.py

changeset 3034
7ce719013078
parent 3031
ed2eaa573ca5
child 3039
8dd0165d805d
equal deleted inserted replaced
3033:58fe260e7469 3034:7ce719013078
73 73
74 It enables/disables the VCS menu entries depending on the overall 74 It enables/disables the VCS menu entries depending on the overall
75 VCS status and the file status. 75 VCS status and the file status.
76 76
77 @param menu reference to the menu to be shown 77 @param menu reference to the menu to be shown
78 @param standardItems array of standard items that need 78 @param standardItems array of standard items that need
79 activation/deactivation depending on the overall VCS status 79 activation/deactivation depending on the overall VCS status
80 @exception RuntimeError to indicate that this method must be 80 @exception RuntimeError to indicate that this method must be
81 implemented by a subclass 81 implemented by a subclass
82 """ 82 """
83 raise RuntimeError('Not implemented') 83 raise RuntimeError('Not implemented')
281 ProjectBrowserDirectoryItem]) 281 ProjectBrowserDirectoryItem])
282 if isRemoveDirs: 282 if isRemoveDirs:
283 names = [itm.dirName() for itm in items] 283 names = [itm.dirName() for itm in items]
284 else: 284 else:
285 names = [itm.fileName() for itm in items] 285 names = [itm.fileName() for itm in items]
286 files = [self.browser.project.getRelativePath(name) \ 286 files = [self.browser.project.getRelativePath(name)
287 for name in names] 287 for name in names]
288 288
289 dlg = DeleteFilesConfirmationDialog( 289 dlg = DeleteFilesConfirmationDialog(
290 self.parent(), 290 self.parent(),
291 self.trUtf8("Remove from repository (and disk)"), 291 self.trUtf8("Remove from repository (and disk)"),

eric ide

mercurial