Changeset 425 in tailor
- Timestamp:
- 07/25/05 22:59:07 (8 years ago)
- Hash name:
- 20050725205907-97f81-64d1f236956acd6948c0bd1c75d44eb96e07b100
- File:
-
- 1 edited
-
vcpx/darcs.py (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
vcpx/darcs.py
r394 r425 12 12 __docformat__ = 'reStructuredText' 13 13 14 from shwrap import ExternalCommand, PIPE 14 from shwrap import ExternalCommand, PIPE, STDOUT 15 15 from source import UpdatableSourceWorkingDir, ChangesetApplicationFailure, \ 16 16 GetUpstreamChangesetsFailure … … 140 140 cmd = [DARCS_CMD, "pull", "--dry-run"] 141 141 pull = ExternalCommand(cwd=root, command=cmd) 142 output = pull.execute(repository, stdout=PIPE, TZ='UTC')142 output = pull.execute(repository, stdout=PIPE, stderr=STDOUT, TZ='UTC') 143 143 144 144 if pull.exit_status: 145 145 raise GetUpstreamChangesetsFailure( 146 146 "%s returned status %d saying \"%s\"" % 147 (str(pull), pull.exit_status, output. strip()))147 (str(pull), pull.exit_status, output.read())) 148 148 149 149 l = output.readline() … … 206 206 cmd = [DARCS_CMD, "pull", "--all", selector, revtag] 207 207 pull = ExternalCommand(cwd=root, command=cmd) 208 output = pull.execute(stdout=PIPE )208 output = pull.execute(stdout=PIPE, stderr=STDOUT) 209 209 210 210 if pull.exit_status: 211 211 raise ChangesetApplicationFailure( 212 212 "%s returned status %d saying \"%s\"" % 213 (str(pull), pull.exit_status, output. strip()))213 (str(pull), pull.exit_status, output.read())) 214 214 215 215 cmd = [DARCS_CMD, "changes", selector, revtag, … … 250 250 cmd.extend(["--tag", revision]) 251 251 dpull = ExternalCommand(cwd=wdir, command=cmd) 252 output = dpull.execute(repository, stdout=PIPE )252 output = dpull.execute(repository, stdout=PIPE, stderr=STDOUT) 253 253 254 254 if dpull.exit_status: 255 255 raise TargetInitializationFailure( 256 256 "%s returned status %d saying \"%s\"" % 257 (str(dpull), dpull.exit_status, output. strip()))257 (str(dpull), dpull.exit_status, output.read())) 258 258 else: 259 259 # Use much faster 'darcs get' … … 264 264 cmd.extend(["--tag", revision]) 265 265 dget = ExternalCommand(cwd=basedir, command=cmd) 266 output = dget.execute(repository, subdir, stdout=PIPE) 266 output = dget.execute(repository, subdir, 267 stdout=PIPE, stderr=STDOUT) 267 268 268 269 if dget.exit_status: 269 270 raise TargetInitializationFailure( 270 271 "%s returned status %d saying \"%s\"" % 271 (str(dget), dget.exit_status, output. strip()))272 (str(dget), dget.exit_status, output.read())) 272 273 273 274 cmd = [DARCS_CMD, "changes", "--last", "1", "--xml-output"] 274 275 changes = ExternalCommand(cwd=wdir, command=cmd) 275 output = changes.execute(stdout=PIPE )276 output = changes.execute(stdout=PIPE, stderr=STDOUT) 276 277 277 278 if changes.exit_status: 278 279 raise ChangesetApplicationFailure( 279 280 "%s returned status %d saying \"%s\"" % 280 (str(changes), changes.exit_status, output. strip()))281 (str(changes), changes.exit_status, output.read())) 281 282 282 283 last = changesets_from_darcschanges(output)
Note: See TracChangeset
for help on using the changeset viewer.
