Changeset 823 in tailor for vcpx/hg.py


Ignore:
Timestamp:
09/20/05 14:26:47 (8 years ago)
Author:
lele@…
Hash name:
20050920122647-97f81-9bc56e5c082655eac76f05a18997c8aba5a582a5
Message:

Raise an error when using pre 0.7 mercurial

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vcpx/hg.py

    r821 r823  
    1313 
    1414from shwrap import ExternalCommand, ReopenableNamedTemporaryFile 
    15 from target import SyncronizableTargetWorkingDir, TargetInitializationFailure 
     15from target import SyncronizableTargetWorkingDir, TargetInitializationFailure, \ 
     16     ChangesetReplayFailure 
    1617from source import ChangesetApplicationFailure 
    1718 
     
    108109                    copy.execute(join(oldname, prefix, f), 
    109110                                 join(newname, prefix, f)) 
     111                    if copy.exit_status: 
     112                        raise ChangesetReplayFailure("Could not rename %r " 
     113                                                     "into %r: maybe using a " 
     114                                                     "pre 0.7 mercurial?") 
    110115        else: 
    111116            copy.execute(oldname, newname) 
     117            if copy.exit_status: 
     118                raise ChangesetReplayFailure("Could not rename %r " 
     119                                             "into %r: maybe using a " 
     120                                             "pre 0.7 mercurial?") 
    112121 
    113122    def _prepareTargetRepository(self): 
Note: See TracChangeset for help on using the changeset viewer.