Changeset 311 in tailor


Ignore:
Timestamp:
05/20/05 11:30:00 (8 years ago)
Author:
lele@…
Hash name:
20050520093000-97f81-7a8ffb6ccafafe4a7ce7adc0943509f5eff89487
Message:

Little documentation fixes to make epydoc happy

Location:
vcpx
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • vcpx/changes.py

    r305 r311  
    1717    Represent a changed entry in a Changeset. 
    1818 
    19     For our scope, this simply means an entry `name`, the original 
    20     `old_revision`, the `new_revision` after this change, an 
    21     `action_kind` to denote the kind of change, and finally a `status` 
     19    For our scope, this simply means an entry ``name``, the original 
     20    ``old_revision``, the ``new_revision`` after this change, an 
     21    ``action_kind`` to denote the kind of change, and finally a ``status`` 
    2222    to indicate possible conflicts. 
    2323    """ 
     
    6565 
    6666    Normalize the message reducing multiple spaces and newlines to single 
    67     spaces, recognizing common form of `bullet lists`, that is paragraphs 
     67    spaces, recognizing common form of ``bullet lists``, that is paragraphs 
    6868    starting with either a dash "-" or an asterisk "*". 
    6969    """ 
  • vcpx/cvsps.py

    r305 r311  
    306306                 
    307307    def _checkoutUpstreamRevision(self, basedir, repository, module, revision, 
    308                                   subdir=None, logger=None): 
     308                                  subdir=None, logger=None, **kwargs): 
    309309        """ 
    310310        Concretely do the checkout of the upstream sources. Use `revision` as 
     
    367367        return last.revision 
    368368     
    369     def _willApplyChangeset(self, root, changeset, applyable): 
     369    def _willApplyChangeset(self, root, changeset, applyable=None): 
    370370        """ 
    371371        This gets called just before applying each changeset. 
     
    460460 
    461461        This is to prevent silly errors such those that could arise 
    462         after a manual `cvs update` in the working directory. 
     462        after a manual ``cvs update`` in the working directory. 
    463463        """ 
    464464         
  • vcpx/source.py

    r305 r311  
    4444    """ 
    4545    This is an abstract working dir able to follow an upstream 
    46     source of `changesets`. 
     46    source of ``changesets``. 
    4747 
    48     It has two main functionalities: 
     48    It has three main functionalities: 
    4949 
    5050    getUpstreamChangesets 
     
    181181         
    182182    def _checkoutUpstreamRevision(self, basedir, repository, module, revision, 
    183                                   logger=None, **kwargs): 
     183                                  subdir=None, logger=None, **kwargs): 
    184184        """ 
    185185        Concretely do the checkout of the upstream revision. 
  • vcpx/target.py

    r305 r311  
    4444        performed by the upstream VC system on the tree such as 
    4545        renames, deletions and adds.  This is an useful argument to 
    46         feed as `replay` to `applyUpstreamChangesets` 
     46        feed as ``replay`` to ``applyUpstreamChangesets`` 
    4747 
    4848    initializeNewWorkingDir 
     
    7070        changeset. 
    7171 
    72         If `delayed_commit` is not True, the changeset is committed 
     72        If ``delayed_commit`` is not True, the changeset is committed 
    7373        to the target VC right after a successful application; otherwise 
    7474        the various information get registered and will be reused later, 
     
    115115        commit of all changed entries. 
    116116 
    117         With `concatenate_logs` there's control over the folded 
     117        With ``concatenate_logs`` there's control over the folded 
    118118        changesets message log: if True every changelog is appended in 
    119119        order of application, otherwise it will contain just the name 
     
    304304            self._renamePathname(root, e.old_name, e.name) 
    305305         
    306     def _renamePathname(self, root, oldentry, newentry): 
     306    def _renamePathname(self, root, oldname, newname): 
    307307        """ 
    308308        Rename a filesystem object to some other name/location. 
     
    328328    def _initializeWorkingDir(self, root, repository, module, subdir): 
    329329        """ 
    330         Assuming the `root` directory contains a working copy `module` 
     330        Assuming the ``root`` directory contains a working copy ``module`` 
    331331        extracted from some VC repository, add it and all its content 
    332332        to the target repository. 
  • vcpx/darcs.py

    r305 r311  
    88 
    99""" 
    10 This module contains supporting classes for the `darcs` versioning system. 
     10This module contains supporting classes for the ``darcs`` versioning system. 
    1111""" 
    1212 
     
    4545    Parse XML output of ``darcs changes``. 
    4646 
    47     Return a list of `Changeset`s. 
     47    Return a list of ``Changeset`` instances. 
    4848    """ 
    4949     
     
    214214 
    215215    def _checkoutUpstreamRevision(self, basedir, repository, module, revision, 
    216                                   subdir=None, logger=None): 
     216                                  subdir=None, logger=None, **kwargs): 
    217217        """ 
    218218        Concretely do the checkout of the upstream revision. 
     
    294294    def _addSubtree(self, root, subdir): 
    295295        """ 
    296         Use the --recursive variant of `darcs add` to add a subtree. 
     296        Use the --recursive variant of ``darcs add`` to add a subtree. 
    297297        """ 
    298298         
     
    363363    def _initializeWorkingDir(self, root, repository, module, subdir): 
    364364        """ 
    365         Execute `darcs initialize` and tweak the default settings of 
     365        Execute ``darcs initialize`` and tweak the default settings of 
    366366        the repository, then add the whole subtree. 
    367367        """ 
  • vcpx/svn.py

    r305 r311  
    306306         
    307307    def _checkoutUpstreamRevision(self, basedir, repository, module, revision, 
    308                                   subdir=None, logger=None): 
     308                                  subdir=None, logger=None, **kwargs): 
    309309        """ 
    310310        Concretely do the checkout of the upstream revision. 
  • vcpx/shwrap.py

    r305 r311  
    5858class VerboseStringIO(StringIO): 
    5959 
    60     def write(self, data):         
     60    def write(self, s): 
    6161        """Give a feedback to the user.""" 
    6262         
    63         StringIO.write(self, data) 
    64         stderr.write('.'*data.count('\n')) 
     63        StringIO.write(self, s) 
     64        stderr.write('.'*s.count('\n')) 
    6565 
    6666def joinall(threadlist): 
  • vcpx/tailor.py

    r305 r311  
    1212This implementation stores the relevant project information, needed to 
    1313keep the whole thing going on, such as the last synced revision, in a 
    14 unversioned file named `tailor.info` at the root. 
     14unversioned file named ``tailor.info`` at the root. 
    1515""" 
    1616 
     
    2626def relpathto(source, dest): 
    2727    """ 
    28     Compute the relative path needed to point `source` from `dest`. 
    29  
    30     Warning: `dest` is assumed to be a directory. 
     28    Compute the relative path needed to point ``source`` from ``dest``. 
     29 
     30    Warning: ``dest`` is assumed to be a directory. 
    3131    """ 
    3232     
     
    289289        Bootstrap a new tailorized module. 
    290290 
    291         Extract a copy of the `repository` at given `revision` in the `root` 
    292         directory and initialize a target repository with its content. 
     291        Extract a copy of the ``repository`` at given ``revision`` in the 
     292        ``root`` directory and initialize a target repository with its content. 
    293293 
    294294        The actual information on the project are stored in a text file. 
     
    376376 
    377377        Fetch the upstream changesets and apply them to the working copy. 
    378         Use the information stored in the `tailor.info` file to ask just 
     378        Use the information stored in the ``tailor.info`` file to ask just 
    379379        the new changeset since last bootstrap/synchronization. 
    380380        """ 
  • vcpx/cdv.py

    r305 r311  
    9797    def _initializeWorkingDir(self, root, repository, module, subdir): 
    9898        """ 
    99         Execute `cdv init`. 
     99        Execute ``cdv init``. 
    100100        """ 
    101101 
  • vcpx/bzr.py

    r309 r311  
    9494    def _initializeWorkingDir(self, root, repository, module, subdir): 
    9595        """ 
    96         Execute `bzr init`. 
     96        Execute ``bzr init``. 
    9797        """ 
    9898 
Note: See TracChangeset for help on using the changeset viewer.