Changeset 868 in tailor
- Timestamp:
- 10/03/05 13:44:34 (8 years ago)
- Hash name:
- 20051003114434-97f81-cf7f393f2f65c2161a1e3810156164c59558201c
- File:
-
- 1 edited
-
vcpx/svn.py (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
vcpx/svn.py
r856 r868 230 230 retry = 0 231 231 while True: 232 out = svnup.execute(stdout=PIPE)[0]232 out, err = svnup.execute(stdout=PIPE, stderr=PIPE) 233 233 234 234 if svnup.exit_status == 1: … … 237 237 break 238 238 delay = 2**retry 239 self.log_info("%s returned status %s saying \"%s\", "239 self.log_info("%s returned status %s saying %r, " 240 240 "retrying in %d seconds..." % 241 (str(svnup), svnup.exit_status, out.read(),241 (str(svnup), svnup.exit_status, err.read(), 242 242 delay)) 243 243 sleep(delay) … … 274 274 "--revision", "1:HEAD") 275 275 svnlog = ExternalCommand(command=cmd) 276 out put= svnlog.execute("%s%s" % (self.repository.repository,277 self.repository.module),278 stdout=PIPE)[0]276 out, err = svnlog.execute("%s%s" % (self.repository.repository, 277 self.repository.module), 278 stdout=PIPE, stderr=PIPE) 279 279 280 280 if svnlog.exit_status: 281 281 raise TargetInitializationFailure( 282 "%s returned status %d saying \"%s\"" %283 (str(svnlog), svnlog.exit_status, output.read()))284 285 csets = changesets_from_svnlog(out put,282 "%s returned status %d saying %r" % 283 (str(svnlog), svnlog.exit_status, err.read())) 284 285 csets = changesets_from_svnlog(out, 286 286 self.repository.repository, 287 287 self.repository.module) … … 295 295 "--revision", revision) 296 296 svnco = ExternalCommand(command=cmd) 297 svnco.execute("%s%s" % (self.repository.repository, 298 self.repository.module), self.basedir) 297 out, err = svnco.execute("%s%s" % (self.repository.repository, 298 self.repository.module), 299 self.basedir, stdout=PIPE, stderr=PIPE) 299 300 if svnco.exit_status: 300 301 raise TargetInitializationFailure( 301 "%s returned status %s" % (str(svnco), svnco.exit_status)) 302 "%s returned status %s saying %r" % (str(svnco), 303 svnco.exit_status, 304 err.read())) 302 305 else: 303 306 self.log_info("%s already exists, assuming it's a svn working dir" % self.basedir) … … 307 310 "--revision", revision=='HEAD' and 'COMMITTED' or revision) 308 311 svnlog = ExternalCommand(cwd=self.basedir, command=cmd) 309 out put = svnlog.execute(stdout=PIPE)[0]312 out, err = svnlog.execute(stdout=PIPE, stderr=PIPE) 310 313 311 314 if svnlog.exit_status: 312 315 raise TargetInitializationFailure( 313 "%s returned status %d saying \"%s\"" %314 (str(changes), changes.exit_status, output.read()))315 316 csets = changesets_from_svnlog(out put,316 "%s returned status %d saying %r" % 317 (str(changes), changes.exit_status, err.read())) 318 319 csets = changesets_from_svnlog(out, 317 320 self.repository.repository, 318 321 self.repository.module) … … 376 379 log.close() 377 380 378 cmd = self.repository.command("commit", "-- file", rontf.name)381 cmd = self.repository.command("commit", "--quiet", "--file", rontf.name) 379 382 commit = ExternalCommand(cwd=self.basedir, command=cmd) 380 383
Note: See TracChangeset
for help on using the changeset viewer.
