Plugins/VcsPlugins/vcsPySvn/subversion.py

branch
5_2_x
changeset 1589
9f0fef4a4fbe
parent 1577
f41d8406c219
child 1683
ef9a9e86269e
--- a/Plugins/VcsPlugins/vcsPySvn/subversion.py	Sat Jan 28 11:36:56 2012 +0100
+++ b/Plugins/VcsPlugins/vcsPySvn/subversion.py	Mon Jan 30 18:53:47 2012 +0100
@@ -737,7 +737,7 @@
                         d = os.path.dirname(d)
                 else:
                     while not os.path.exists(os.path.join(d, self.adminDir)):
-                        # add directories recursively, 
+                        # add directories recursively,
                         # if they aren't in the repository already
                         if d in tree:
                             break
@@ -1300,7 +1300,7 @@
             return self.statusCache[name]
         
         name = os.path.normcase(name)
-        states = { name : 0 }
+        states = {name: 0}
         states = self.vcsAllRegisteredStates(states, dname, False)
         if states[name] == self.canBeCommitted:
             return self.canBeCommitted
@@ -1352,7 +1352,7 @@
         else:
             return self.__vcsAllRegisteredStates_wc(names, dname, shortcut)
         
-    def __vcsAllRegisteredStates_wcng(self, names, dname, shortcut = True):
+    def __vcsAllRegisteredStates_wcng(self, names, dname, shortcut=True):
         """
         Private method used to get the registered states of a number of files in the vcs.
         
@@ -1366,7 +1366,7 @@
         @param names dictionary with all filenames to be checked as keys
         @param dname directory to check in (string)
         @param shortcut flag indicating a shortcut should be taken (boolean)
-        @return the received dictionary completed with a combination of 
+        @return the received dictionary completed with a combination of
             canBeCommited and canBeAdded or None in order to signal an error
         """
         if dname.endswith(os.sep):
@@ -1397,8 +1397,8 @@
             
             try:
                 locker = QMutexLocker(self.vcsExecutionMutex)
-                allFiles = client.status(dname, recurse = True, get_all = True, 
-                                              ignore = True, update = False)
+                allFiles = client.status(dname, recurse=True, get_all=True,
+                                              ignore=True, update=False)
                 locker.unlock()
                 dirs = [x for x in names.keys() if os.path.isdir(x)]
                 for file in allFiles:
@@ -1429,7 +1429,7 @@
         
         return names
         
-    def __vcsAllRegisteredStates_wc(self, names, dname, shortcut = True):
+    def __vcsAllRegisteredStates_wc(self, names, dname, shortcut=True):
         """
         Private method used to get the registered states of a number of files in the vcs.
         
@@ -1443,7 +1443,7 @@
         @param names dictionary with all filenames to be checked as keys
         @param dname directory to check in (string)
         @param shortcut flag indicating a shortcut should be taken (boolean)
-        @return the received dictionary completed with a combination of 
+        @return the received dictionary completed with a combination of
             canBeCommited and canBeAdded or None in order to signal an error
         """
         if not os.path.isdir(os.path.join(dname, self.adminDir)):

eric ide

mercurial