Changeset 1164 in tailor for vcpx/bzr.py


Ignore:
Timestamp:
06/13/06 02:31:31 (7 years ago)
Author:
lele@…
Hash name:
20060613003131-97f81-749a246c8e1e55900c2d3f3bdd0a89dd7cf82168
Message:

Use normalized path for comparing with paths from bzrlib
This is the patch attached to ticket #59, thank you luks.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vcpx/bzr.py

    r1162 r1164  
    1818from source import UpdatableSourceWorkingDir, ChangesetApplicationFailure 
    1919from target import SynchronizableTargetWorkingDir 
     20from bzrlib.osutils import normpath 
    2021from bzrlib.bzrdir import BzrDir 
    2122from bzrlib.delta import compare_trees 
     
    164165 
    165166            for fn in names: 
     167                normfn = normpath(fn) 
    166168                if (not inv.has_filename(fn) 
    167                     and not fn in added 
    168                     and not parent_was_copied(fn)): 
     169                    and not normfn in added 
     170                    and not parent_was_copied(normfn)): 
    169171                    fnames.append(fn) 
    170172                else: 
     
    206208        email = ''.join(email.split()) 
    207209 
     210        # Normalize file names 
     211        if entries: 
     212            entries = [normpath(entry) for entry in entries] 
     213         
    208214        revision_id = "%s-%s-%s" % (email, compact_date(timestamp), 
    209215                                    hexlify(rand_bytes(8))) 
Note: See TracChangeset for help on using the changeset viewer.