Changeset 1222 in tailor for vcpx/repository/darcs/source.py


Ignore:
Timestamp:
07/10/06 01:43:05 (7 years ago)
Author:
lele@…
Hash name:
20060709234305-97f81-5e42989c3be7ed6d12b6f56252fcb8c8fdb724a9
Message:

Fix the reordering of bad ordered darcs hunks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vcpx/repository/darcs/source.py

    r1221 r1222  
    137137                        if e.action_kind == e.RENAMED: 
    138138                            for j,n in enumerate(entries[i+1:]): 
    139                                 if (e.name.startswith(n.name+'/') and 
    140                                     (n.action_kind == n.ADDED or 
    141                                      n.action_kind == n.RENAMED)): 
     139                                if ((e.name.startswith(n.name+'/') or e.old_name==n.name) and 
     140                                    (n.action_kind == n.ADDED or n.action_kind == n.RENAMED)): 
    142141                                    m = entries.pop(i+1+j) 
    143142                                    entries.insert(i, m) 
Note: See TracChangeset for help on using the changeset viewer.