source: tailor/vcpx/workdir.py @ 1209

Revision 1209, 842 bytes checked in by ydirson@…, 7 years ago (diff)

Move basedir attribute from WorkingDir to Repository

Line 
1# -*- mode: python; coding: utf-8 -*-
2# :Progetto: vcpx -- Abstract working directory
3# :Creato:   sab 06 ago 2005 10:41:13 CEST
4# :Autore:   Lele Gaifax <lele@nautilus.homeip.net>
5# :Licenza:  GNU General Public License
6#
7
8"""
9"""
10
11__docformat__ = 'reStructuredText'
12
13class WorkingDir(object):
14    """
15    This is the common ancestor for working directories, associated
16    to some kind of repository.
17    """
18
19    def __init__(self, repository):
20        from logging import getLogger
21
22        self.repository = repository
23        self.log = getLogger('tailor.%s.%s' % (self.__class__.__name__,
24                                               repository.name))
25
26    def setStateFile(self, state_file):
27        """
28        Set the state file used to store the revision and pending changesets.
29        """
30
31        self.state_file = state_file
Note: See TracBrowser for help on using the repository browser.