Plugins/VcsPlugins/vcsMercurial/hg.py

changeset 3310
a2032ed66aec
parent 3308
955abb40a903
child 3311
b4775920f5b8
--- a/Plugins/VcsPlugins/vcsMercurial/hg.py	Thu Feb 27 18:59:52 2014 +0100
+++ b/Plugins/VcsPlugins/vcsMercurial/hg.py	Thu Feb 27 19:48:55 2014 +0100
@@ -136,6 +136,7 @@
         from .TransplantExtension.transplant import Transplant
         from .RebaseExtension.rebase import Rebase
         from .ShelveExtension.shelve import Shelve
+        from .LargefilesExtension.largefiles import Largefiles
         self.__extensions = {
             "bookmarks": Bookmarks(self),
             "mq": Queues(self),
@@ -145,6 +146,7 @@
             "transplant": Transplant(self),
             "rebase": Rebase(self),
             "shelve": Shelve(self),
+            "largefiles": Largefiles(self)
         }
     
     def getPlugin(self):
@@ -3346,6 +3348,11 @@
                 self.version < (2, 8):
             # shelve extension was added as of Mercurial 2.8.0
             isActive = False
+        if isActive and \
+            extensionName == "largefiles" and \
+                self.version < (2, 0):
+            # largefiles extension was added as of Mercurial 2.0.0
+            isActive = False
         
         return isActive
     

eric ide

mercurial