Changeset 459 in tailor
- Timestamp:
- 08/02/05 21:51:48 (8 years ago)
- Hash name:
- 20050802195148-97f81-42b3844f3e4ffa084ca28955278c6fe77cf1a8d7
- File:
-
- 1 edited
-
vcpx/source.py (modified) (10 diffs)
Legend:
- Unmodified
- Added
- Removed
-
vcpx/source.py
r426 r459 27 27 class GetUpstreamChangesetsFailure(Exception): 28 28 "Failure getting upstream changes" 29 29 30 30 pass 31 31 32 32 class ChangesetApplicationFailure(Exception): 33 33 "Failure applying upstream changes" 34 34 35 35 pass 36 36 37 37 class InvocationError(Exception): 38 38 "Bad invocation, use --help for details" 39 39 40 40 pass 41 41 … … 49 49 getUpstreamChangesets 50 50 to query the upstream server about new changesets 51 51 52 52 applyUpstreamChangesets 53 53 to apply them to the working directory … … 56 56 to extract a new copy of the sources, actually initializing 57 57 the mechanism. 58 58 59 59 Subclasses MUST override at least the _underscoredMethods. 60 60 """ … … 83 83 if not self._willApplyChangeset(root, c, applyable): 84 84 continue 85 85 86 86 if logger: 87 87 logger.info("Applying changeset %s", c.revision) … … 95 95 logger.debug(str(c)) 96 96 raise 97 97 98 98 if res: 99 99 conflicts.append((c, res)) … … 107 107 replay(root, module, c, delayed_commit=delayed_commit, 108 108 logger=logger) 109 109 110 110 if applied: 111 111 applied(root, c) 112 112 113 113 last = c 114 114 115 115 return last, conflicts 116 116 … … 134 134 sources since last sync, returning a sequence of Changesets 135 135 instances. 136 136 137 137 This method must be overridden by subclasses. 138 138 """ 139 139 140 140 raise "%s should override this method" % self.__class__ 141 141 142 142 def _applyChangeset(self, root, changeset, logger=None): 143 143 """ … … 164 164 165 165 :module: the name of the module to extract 166 166 167 167 :revision: extract that revision/branch 168 168 … … 174 174 if not repository: 175 175 raise InvocationError("Must specify an upstream repository") 176 176 177 177 return self._checkoutUpstreamRevision(root, repository, 178 178 module, revision, 179 179 **kwargs) 180 180 181 181 def _checkoutUpstreamRevision(self, basedir, repository, module, revision, 182 182 subdir=None, logger=None, **kwargs): … … 184 184 Concretely do the checkout of the upstream revision. 185 185 """ 186 186 187 187 raise "%s should override this method" % self.__class__
Note: See TracChangeset
for help on using the changeset viewer.
