Changeset 1653 in tailor


Ignore:
Timestamp:
07/17/08 23:30:40 (5 years ago)
Author:
jhs@…
Hash name:
20080717213040-487bc-499d85d180748957b5a79653d774271ff9617e02
Message:

Clear git target renaming error messages

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vcpx/repository/git/target.py

    r1652 r1653  
    267267                # out of the way, and the superclass expects us to rename the 
    268268                # the file or directory via git. 
    269                 if exists(newpath) or not exists(newpathtmp): 
    270                     raise ChangesetApplicationFailure("Unsure how to handle disjunct rename of %s" 
    271                                                           % newname) 
     269 
     270                # First, some sanity checks. 
     271                if exists(newpath): 
     272                    raise ChangesetApplicationFailure( 
     273                        "Cannot rename since target already exists: %s" % newname) 
     274 
     275                if not exists(newpathtmp): 
     276                    raise ChangesetApplicationFailure( 
     277                        "Cannot rename since actual target not found: %s" % newnametmp) 
     278 
    272279                self.repository.runCommand(['mv', oldname, newname]) 
    273280 
Note: See TracChangeset for help on using the changeset viewer.