mercurial/patch.py
changeset 43649 d649de29f1ff
parent 43506 9f70512ae2cf
child 43735 7eb701e355bd
equal deleted inserted replaced
43648:4093fc1777c2 43649:d649de29f1ff
  2603 
  2603 
  2604     getfilectx = lrugetfilectx()
  2604     getfilectx = lrugetfilectx()
  2605 
  2605 
  2606     if not changes:
  2606     if not changes:
  2607         changes = ctx1.status(ctx2, match=match)
  2607         changes = ctx1.status(ctx2, match=match)
  2608     modified, added, removed = changes[:3]
  2608     if isinstance(changes, list):
       
  2609         modified, added, removed = changes[:3]
       
  2610     else:
       
  2611         modified, added, removed = (
       
  2612             changes.modified,
       
  2613             changes.added,
       
  2614             changes.removed,
       
  2615         )
  2609 
  2616 
  2610     if not modified and not added and not removed:
  2617     if not modified and not added and not removed:
  2611         return []
  2618         return []
  2612 
  2619 
  2613     if repo.ui.debugflag:
  2620     if repo.ui.debugflag: