Changeset 1669 in tailor for vcpx/repository/darcs/source.py
- Timestamp:
- 06/19/10 15:07:52 (3 years ago)
- Hash name:
- 20100619130752-97f81-6fb702285bca2941095a5b9329739414ee49f803
- File:
-
- 1 edited
-
vcpx/repository/darcs/source.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
vcpx/repository/darcs/source.py
r1663 r1669 406 406 # wasn't perfect, as it was printing useless verbosity before 407 407 # and after the actual xml. Around 2.0.0+275 I removed that... 408 409 line = output.readline() # Would pull from "/home/lele/wip/darcs-2.0"... 408 # Darcs 2.4 however still emits the first line :-\ 409 410 line = output.readline() 410 411 if line.startswith('Would pull from '): 411 # Skip the first two lines and drop the last two as well 412 output.readline() # Would pull the following changes: 413 xml = StringIO(''.join(output.readlines()[:-2])) 414 xml.seek(0) 412 # Ok, this is either darcs>2.4 or my early even noisier implementation 413 pos = output.tell() 414 line = output.readline() 415 if line.startswith('Would pull the following changes:'): 416 # This is early implementation: skip the first two lines 417 # (discarded above) and drop the last two as well 418 xml = StringIO(''.join(output.readlines()[:-2])) 419 xml.seek(0) 420 else: 421 # This is darcs>2.4, go back to the second line, 422 # thus ignoring only the first 423 output.seek(pos) 424 xml = output 415 425 else: 416 426 output.seek(0)
Note: See TracChangeset
for help on using the changeset viewer.
