diff -r e8978dca44af -r 6f9713e8d570 Plugins/VcsPlugins/vcsMercurial/ProjectHelper.py --- a/Plugins/VcsPlugins/vcsMercurial/ProjectHelper.py Fri Apr 30 16:45:56 2010 +0000 +++ b/Plugins/VcsPlugins/vcsMercurial/ProjectHelper.py Sat May 01 18:26:14 2010 +0000 @@ -568,6 +568,19 @@ self.connect(self.hgRecoverAct, SIGNAL('triggered()'), self.__hgRecover) self.actions.append(self.hgRecoverAct) + self.hgIdentifyAct = E5Action(self.trUtf8('Identify'), + self.trUtf8('Identify...'), + 0, 0, self, 'mercurial_identify') + self.hgIdentifyAct.setStatusTip(self.trUtf8( + 'Identify the project directory' + )) + self.hgIdentifyAct.setWhatsThis(self.trUtf8( + """<b>Identify</b>""" + """<p>This identifies the project directory.</p>""" + )) + self.connect(self.hgIdentifyAct, SIGNAL('triggered()'), self.__hgIdentify) + self.actions.append(self.hgIdentifyAct) + self.hgCreateIgnoreAct = E5Action(self.trUtf8('Create .hgignore'), self.trUtf8('Create .hgignore'), 0, 0, self, 'mercurial_create ignore') @@ -603,10 +616,10 @@ )) self.hgPreviewBundleAct.setWhatsThis(self.trUtf8( """<b>Preview changegroup</b>""" - """<p>This previews a changegroup file containing a collecting of""" + """<p>This previews a changegroup file containing a collecting of""" """ changesets.</p>""" )) - self.connect(self.hgPreviewBundleAct, SIGNAL('triggered()'), + self.connect(self.hgPreviewBundleAct, SIGNAL('triggered()'), self.__hgPreviewBundle) self.actions.append(self.hgPreviewBundleAct) @@ -689,6 +702,7 @@ adminMenu.addAction(self.hgParentsAct) adminMenu.addAction(self.hgTipAct) adminMenu.addAction(self.hgShowBranchAct) + adminMenu.addAction(self.hgIdentifyAct) adminMenu.addSeparator() adminMenu.addAction(self.hgShowPathsAct) adminMenu.addSeparator() @@ -702,7 +716,7 @@ adminMenu.addAction(self.hgVerifyAct) bundleMenu = QMenu(self.trUtf8("Changegroup Management"), menu) - bundleMenu.addAction(self.hgBundleAct) + bundleMenu.addAction(self.hgBundleAct) bundleMenu.addAction(self.hgPreviewBundleAct) bundleMenu.addAction(self.hgUnbundleAct) @@ -906,6 +920,12 @@ """ self.vcs.hgRecover(self.project.ppath) + def __hgIdentify(self): + """ + Protected slot used to identify the project directory. + """ + self.vcs.hgIdentify(self.project.ppath) + def __hgCreateIgnore(self): """ Protected slot used to create a .hgignore file for the project. @@ -917,12 +937,12 @@ Protected slot used to create a changegroup file. """ self.vcs.hgBundle(self.project.ppath) - + def __hgPreviewBundle(self): """ Protected slot used to preview a changegroup file. """ - self.vcs.hgPreviewBundle(self.project.ppath) + self.vcs.hgPreviewBundle(self.project.ppath) def __hgUnbundle(self): """