Plugins/VcsPlugins/vcsMercurial/PurgeExtension/purge.py

branch
Py2 comp.
changeset 3057
10516539f238
parent 2791
a9577f248f04
parent 2962
d6c9d1ca2da4
child 3145
a9de05d4a22f
--- a/Plugins/VcsPlugins/vcsMercurial/PurgeExtension/purge.py	Tue Oct 15 22:03:54 2013 +0200
+++ b/Plugins/VcsPlugins/vcsMercurial/PurgeExtension/purge.py	Fri Oct 18 23:00:41 2013 +0200
@@ -50,7 +50,8 @@
         Public method to get a list of files/directories being purged.
         
         @param repodir directory name of the repository (string)
-        @param all flag indicating to delete all files including ignored ones (boolean)
+        @param all flag indicating to delete all files including ignored ones
+            (boolean)
         @return name of the current patch (string)
         """
         purgeEntries = []
@@ -86,25 +87,28 @@
         Public method to purge files and directories not tracked by Mercurial.
         
         @param name file/directory name (string)
-        @param all flag indicating to delete all files including ignored ones (boolean)
+        @param all flag indicating to delete all files including ignored ones
+            (boolean)
         """
         # find the root of the repo
         repodir = self.vcs.splitPath(name)[0]
         while not os.path.isdir(os.path.join(repodir, self.vcs.adminDir)):
             repodir = os.path.dirname(repodir)
             if os.path.splitdrive(repodir)[1] == os.sep:
-                return False
+                return
         
         if all:
             title = self.trUtf8("Purge All Files")
-            message = self.trUtf8("""Do really want to delete all files not tracked by"""
-                                  """ Mercurial (including ignored ones)?""")
+            message = self.trUtf8(
+                """Do really want to delete all files not tracked by"""
+                """ Mercurial (including ignored ones)?""")
         else:
             title = self.trUtf8("Purge Files")
-            message = self.trUtf8("""Do really want to delete files not tracked by"""
-                                  """ Mercurial?""")
+            message = self.trUtf8(
+                """Do really want to delete files not tracked by Mercurial?""")
         entries = self.__getEntries(repodir, all)
-        from UI.DeleteFilesConfirmationDialog import DeleteFilesConfirmationDialog
+        from UI.DeleteFilesConfirmationDialog import \
+            DeleteFilesConfirmationDialog
         dlg = DeleteFilesConfirmationDialog(None, title, message, entries)
         if dlg.exec_() == QDialog.Accepted:
             args = []
@@ -123,14 +127,15 @@
         Public method to list files and directories not tracked by Mercurial.
         
         @param name file/directory name (string)
-        @param all flag indicating to list all files including ignored ones (boolean)
+        @param all flag indicating to list all files including ignored ones
+            (boolean)
         """
         # find the root of the repo
         repodir = self.vcs.splitPath(name)[0]
         while not os.path.isdir(os.path.join(repodir, self.vcs.adminDir)):
             repodir = os.path.dirname(repodir)
             if os.path.splitdrive(repodir)[1] == os.sep:
-                return False
+                return
         
         entries = self.__getEntries(repodir, all)
         from .HgPurgeListDialog import HgPurgeListDialog

eric ide

mercurial