Changeset 1274 in tailor for vcpx/repository/hg.py


Ignore:
Timestamp:
09/09/06 21:42:58 (7 years ago)
Author:
lele@…
Hash name:
20060909194258-7a6fb-b3908d4add76b8477c5e799c72c54a960134dd5f
Message:

Fix the conflict case with HG
Do not return a list of tuples from _applyChangeset(), but rather a flat list.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vcpx/repository/hg.py

    r1220 r1274  
    114114            # cause a merge error on update. If no files are modified, 
    115115            # added, removed, or deleted, do update -C 
    116             modified = [x for x in repo.changes()[0:4] if x] 
    117             if modified: 
    118                 return modified 
     116            modified, added, removed, deleted = repo.changes()[0:4] 
     117            conflicting = modified + added + removed + deleted 
     118            if conflicting: 
     119                return conflicting 
    119120            return repo.update(node, force=True) 
    120121 
Note: See TracChangeset for help on using the changeset viewer.