Plugins/VcsPlugins/vcsMercurial/HgExtension.py

Tue, 31 May 2011 10:31:06 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Tue, 31 May 2011 10:31:06 +0200
changeset 1087
fb8cd56819a9
child 1131
7781e396c903
permissions
-rw-r--r--

Changed the Mercurial extension interface code to use custom base classes instead of inheriting QObject directly.

# -*- coding: utf-8 -*-

# Copyright (c) 2011 Detlev Offenbach <detlev@die-offenbachs.de>
#

"""
Module implementing the base class for Mercurial extension interfaces.
"""

from PyQt4.QtCore import QObject


class HgExtension(QObject):
    """
    Class implementing the base class for Mercurial extension interfaces.
    """
    def __init__(self, vcs):
        """
        Constructor
        
        @param vcs reference to the Mercurial vcs object
        """
        QObject.__init__(self, vcs)
        
        self.vcs = vcs
    
    def shutdown(self):
        """
        Public method used to shutdown the extension interface.
        
        The method of this base class does nothing.
        """
        pass

eric ide

mercurial