Plugins/PluginVcsMercurial.py

changeset 3004
c4bf32c791d0
parent 2962
d6c9d1ca2da4
child 3022
57179e4cdadd
child 3057
10516539f238
--- a/Plugins/PluginVcsMercurial.py	Thu Oct 10 18:40:16 2013 +0200
+++ b/Plugins/PluginVcsMercurial.py	Thu Oct 10 19:03:45 2013 +0200
@@ -32,7 +32,8 @@
 className = "VcsMercurialPlugin"
 packageName = "__core__"
 shortDescription = "Implements the Mercurial version control interface."
-longDescription = """This plugin provides the Mercurial version control interface."""
+longDescription = \
+    """This plugin provides the Mercurial version control interface."""
 pyqtApi = 2
 # End-Of-Header
 
@@ -69,8 +70,8 @@
     """
     Public function to get the indicators for this version control system.
     
-    @return dictionary with indicator as key and a tuple with the vcs name (string)
-        and vcs display string (string)
+    @return dictionary with indicator as key and a tuple with the vcs name
+        (string) and vcs display string (string)
     """
     global pluginTypename
     data = {}
@@ -108,7 +109,8 @@
     @return reference to the configuration page
     """
     global mercurialCfgPluginObject
-    from VcsPlugins.vcsMercurial.ConfigurationPage.MercurialPage import MercurialPage
+    from VcsPlugins.vcsMercurial.ConfigurationPage.MercurialPage import \
+        MercurialPage
     if mercurialCfgPluginObject is None:
         mercurialCfgPluginObject = VcsMercurialPlugin(None)
     page = MercurialPage(mercurialCfgPluginObject)
@@ -119,7 +121,8 @@
     """
     Module function returning data as required by the configuration dialog.
     
-    @return dictionary with key "zzz_mercurialPage" containing the relevant data
+    @return dictionary with key "zzz_mercurialPage" containing the relevant
+        data
     """
     return {
         "zzz_mercurialPage": \
@@ -134,7 +137,8 @@
     """
     Module function to prepare for an uninstallation.
     """
-    if not e5App().getObject("PluginManager").isPluginLoaded("PluginVcsMercurial"):
+    if not e5App().getObject("PluginManager").isPluginLoaded(
+            "PluginVcsMercurial"):
         Preferences.Prefs.settings.remove("Mercurial")
     
 
@@ -167,8 +171,8 @@
         from VcsPlugins.vcsMercurial.ProjectHelper import HgProjectHelper
         self.__projectHelperObject = HgProjectHelper(None, None)
         try:
-            e5App().registerPluginObject(pluginTypename, self.__projectHelperObject,
-                                         pluginType)
+            e5App().registerPluginObject(
+                pluginTypename, self.__projectHelperObject, pluginType)
         except KeyError:
             pass    # ignore duplicate registration
         readShortcuts(pluginName=pluginTypename)
@@ -205,8 +209,8 @@
         @param key the key of the value to get
         @return the requested setting
         """
-        if key in ["StopLogOnCopy", "UseLogBrowser", "PullUpdate", "PreferUnbundle",
-                   "CreateBackup"]:
+        if key in ["StopLogOnCopy", "UseLogBrowser", "PullUpdate",
+                   "PreferUnbundle", "CreateBackup"]:
             return Preferences.toBool(Preferences.Prefs.settings.value(
                 "Mercurial/" + key, self.__mercurialDefaults[key]))
         elif key in ["LogLimit", "CommitMessages", "ServerPort"]:

eric ide

mercurial