Changeset 20 in tailor


Ignore:
Timestamp:
06/22/04 00:04:51 (9 years ago)
Author:
lele@…
Hash name:
20040621220451-97f81-0a40214a02af731cd80a8b614099b50f2c93d22a
Message:

Documentation

Location:
vcpx
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • vcpx/source.py

    r16 r20  
    1515 
    1616class UpdatableSourceWorkingDir(object): 
    17     """This is an abstract working dir. Subclasses MUST override at least 
    18        the _underscoredMethods.""" 
     17    """ 
     18    This is an abstract working dir able to follow an upstream 
     19    source of `changesets`. 
     20 
     21    It has two main functionalities: 
     22 
     23    applyUpstreamChangesets 
     24        to query the upstream server about new changesets and 
     25        apply them to the working directory 
     26 
     27    checkoutUpstreamRevision 
     28        to extract a new copy of the sources, actually initializing 
     29        the mechanism. 
     30       
     31    Subclasses MUST override at least the _underscoredMethods. 
     32    """ 
    1933 
    2034    def applyUpstreamChangesets(self, root, replay=None): 
     
    5670        """ 
    5771        Do the actual work of applying the changeset to the working copy. 
     72 
     73        Subclasses should reimplement this method performing the 
     74        necessary steps to *merge* given `changeset`, returning a list 
     75        with the conflicts, if any. 
    5876        """ 
    5977 
     
    6381        """ 
    6482        Extract a working copy from a repository. 
     83 
     84        :root: the name of the directory (that should **not** exists) 
     85               that will contain the working copy of the sources 
     86 
     87        :repository: the address of the repository (the format depends on 
     88                     the actual method used by the subclass) 
     89 
     90        :revision: extract that revision/branch 
    6591        """ 
    6692 
  • vcpx/target.py

    r19 r20  
    1717class SyncronizableTargetWorkingDir(object): 
    1818    """ 
    19     This is an abstract working dir. Subclasses MUST override at least 
    20     the _underscoredMethods. 
     19    This is an abstract working dir usable as a *shadow* of another 
     20    kind of VC, sharing the same working directory. 
     21 
     22    Most interesting entry points are: 
     23 
     24    replayChangeset 
     25        to replay an already applied changeset, to mimic the actions 
     26        performed by the upstream VC system on the tree such as 
     27        renames, deletions and adds.  This is an useful argument to 
     28        feed as `replay` to `applyUpstreamChangesets` 
     29 
     30    initializeNewWorkingDir 
     31        to initialize a pristine working directory tree under this VC 
     32        system, possibly extracted under a different kind of VC 
     33     
     34    Subclasses MUST override at least the _underscoredMethods. 
    2135    """ 
    2236 
     
    92106        from some VC repository, add it and all its content to the 
    93107        target repository. 
     108 
     109        This implementation first runs the given `addentry` 
     110        *SystemCommand* on the `root` directory, then it walks down 
     111        the `root` tree executing the same command on each entry 
     112        excepted the usual VC-specific control directories such as 
     113        ``.svn``, ``_darcs`` or ``CVS``. 
     114 
     115        If this does make sense, subclasses should just call this 
     116        method with the right `addentry` command. 
    94117        """ 
    95118 
Note: See TracChangeset for help on using the changeset viewer.