Changeset 45 in tailor
- Timestamp:
- 07/05/04 12:30:55 (9 years ago)
- Hash name:
- 20040705103055-97f81-f6e955487befd1c7819558028994f02ffb348362
- File:
-
- 1 edited
-
vcpx/tailor.py (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
vcpx/tailor.py
r43 r45 1 1 #! /usr/bin/python 2 2 # -*- mode: python; coding: utf-8 -*- 3 # :Progetto: vcpx -- 3 # :Progetto: vcpx -- Frontend capabilities 4 4 # :Creato: dom 04 lug 2004 00:40:54 CEST 5 5 # :Autore: Lele Gaifax <lele@nautilus.homeip.net> … … 7 7 8 8 """ 9 Implement the basic capabilities of the frontend. 10 11 This implementation stores the relevant project information, needed to 12 keep the whole thing going on, such as the last synced revision, in a 13 unversioned file named `tailor.info` at the root. 9 14 """ 10 15 … … 17 22 18 23 class TailorizedProject(object): 19 24 """ 25 A TailorizedProject has two main capabilities: it may be bootstrapped 26 from an upstream repository or brought in sync with current upstream 27 revision. 28 """ 29 20 30 def __init__(self, root): 21 31 import logging … … 37 47 38 48 def __saveStatus(self): 49 """ 50 Save relevant project information in a persistent way. 51 """ 52 39 53 from os.path import join, exists 40 54 … … 49 63 50 64 def __loadStatus(self): 65 """ 66 Load relevant project information. 67 """ 68 51 69 from os.path import join, exists 52 70 … … 69 87 Extract a copy of the `repository` at given `revision` in the `root` 70 88 directory and initialize a target repository with its content. 89 90 The actual information on the project are stored in a text file. 71 91 """ 72 92 … … 94 114 95 115 def update(self): 116 """ 117 Update an existing tailorized project. 118 119 Fetch the upstream changesets and apply them to the working copy. 120 Use the information stored in the `tailor.info` file to ask just 121 the new changeset since last bootstrap/synchronization. 122 """ 123 96 124 from os.path import join 97 125
Note: See TracChangeset
for help on using the changeset viewer.
