Plugins/VcsPlugins/vcsMercurial/hg.py

changeset 1083
dc680a0ce221
parent 1078
aeee8401e2ce
child 1085
ef6102d5fefe
--- a/Plugins/VcsPlugins/vcsMercurial/hg.py	Mon May 30 19:21:18 2011 +0200
+++ b/Plugins/VcsPlugins/vcsMercurial/hg.py	Mon May 30 19:23:59 2011 +0200
@@ -827,6 +827,8 @@
         Public method used to switch a working directory to a different revision.
         
         @param name directory name to be switched (string)
+        @return flag indicating, that the switch contained an add
+            or delete (boolean)
         """
         dname, fname = self.splitPath(name)
         
@@ -835,7 +837,7 @@
         while not os.path.isdir(os.path.join(repodir, self.adminDir)):
             repodir = os.path.dirname(repodir)
             if repodir == os.sep:
-                return
+                return False
         
         if self.isExtensionActive("bookmarks"):
             bookmarksList = \
@@ -847,7 +849,9 @@
                                         bookmarksList)
         if dlg.exec_() == QDialog.Accepted:
             rev = dlg.getRevision()
-            self.vcsUpdate(name, revision=rev)
+            return self.vcsUpdate(name, revision=rev)
+        
+        return False
 
     def vcsRegisteredState(self, name):
         """

eric ide

mercurial