Changeset 841 in tailor


Ignore:
Timestamp:
09/24/05 22:29:17 (8 years ago)
Author:
Jelmer Vernooij <jelmer@…>
Hash name:
20050924202917-d4f9e-b2a021efc010194fbaee4619a7bdab6d1048a106
Message:

svn-simplify-startswith

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vcpx/svn.py

    r840 r841  
    119119                def parent_was_copied_externally(n): 
    120120                    for p in self.external_copies: 
    121                         # Check if this was in fact a parent 
    122                         if len(p) < len(n) and n[0:len(p)] == p: 
     121                        if n.startswith(p): 
    123122                            return True 
    124123                    return False 
Note: See TracChangeset for help on using the changeset viewer.