Changeset 580 in tailor
- Timestamp:
- 08/15/05 18:55:56 (8 years ago)
- Hash name:
- 20050815165556-97f81-f58d1ed20c8af9e4f1c96fe528e2ab803c4c7732
- Location:
- vcpx
- Files:
-
- 2 edited
-
tailor.py (modified) (5 diffs)
-
project.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
vcpx/tailor.py
r558 r580 104 104 Changeset.REFILL_MESSAGE = not pconfig('dont-refill-changelogs') 105 105 106 if options.bootstrap:106 if not self.project.exists(): 107 107 self.bootstrap() 108 108 else: … … 135 135 136 136 UPDATE_OPTIONS = [ 137 make_option("--update", action="store_true", default=True,138 help="Update the given repositories, fetching upstream "139 "changesets, applying and re-registering each one. "140 "This is the default behaviour."),141 137 make_option("-F", "--patch-name-format", metavar="FORMAT", 142 138 help="Specify the prototype that will be used " … … 162 158 163 159 BOOTSTRAP_OPTIONS = [ 164 make_option("-b", "--bootstrap", action="store_true", default=False,165 help="Bootstrap mode, that is the initial copy of the "166 "upstream tree, given as an URI (see -R) and maybe "167 "a revision (-r). This overrides --update."),168 160 make_option("-s", "--source-kind", dest="source_kind", metavar="VC-KIND", 169 161 help="Select the backend for the upstream source " … … 267 259 defaults = {} 268 260 for k,v in options.__dict__.items(): 269 if k not in ['interactive', ' bootstrap', 'configfile', 'migrate']:261 if k not in ['interactive', 'configfile', 'migrate']: 270 262 defaults[k.replace('_', '-')] = str(v) 271 263 … … 308 300 309 301 config.add_section(source) 310 if options.bootstrap and not options.source_repository:311 raise InvocationError('Need a source repository to bootstrap')312 313 302 config.set(source, 'repository', options.source_repository) 314 303 if options.source_module: -
vcpx/project.py
r575 r580 169 169 return klass(repname, kind, self, which) 170 170 171 def exists(self): 172 """ 173 Return True if the project exists, False otherwise. 174 175 Check for the existence of the state file to decide. 176 """ 177 178 from os.path import exists 179 180 return exists(self.state_file.filename) 181 171 182 def workingDir(self): 172 183 """
Note: See TracChangeset
for help on using the changeset viewer.
