mercurial/cmdutil.py
changeset 6536 dfdef3d560a8
parent 6258 c24f4b3f156b
child 6553 0bb76d168437
equal deleted inserted replaced
6535:93e140dbcd44 6536:dfdef3d560a8
  1016             for filename_node in copies:
  1016             for filename_node in copies:
  1017                 yield filename_node
  1017                 yield filename_node
  1018         minrev, maxrev = min(revs), max(revs)
  1018         minrev, maxrev = min(revs), max(revs)
  1019         for file_, node in iterfiles():
  1019         for file_, node in iterfiles():
  1020             filelog = repo.file(file_)
  1020             filelog = repo.file(file_)
  1021             # A zero count may be a directory or deleted file, so
       
  1022             # try to find matching entries on the slow path.
       
  1023             if filelog.count() == 0:
  1021             if filelog.count() == 0:
  1024                 slowpath = True
  1022                 if node is None:
  1025                 break
  1023                     # A zero count may be a directory or deleted file, so
       
  1024                     # try to find matching entries on the slow path.
       
  1025                     slowpath = True
       
  1026                     break
       
  1027                 else:
       
  1028                     ui.warn(_('%s:%s copy source revision cannot be found!\n') 
       
  1029                             % (file_, short(node)))
       
  1030                     continue
  1026             for rev, copied in filerevgen(filelog, node):
  1031             for rev, copied in filerevgen(filelog, node):
  1027                 if rev <= maxrev:
  1032                 if rev <= maxrev:
  1028                     if rev < minrev:
  1033                     if rev < minrev:
  1029                         break
  1034                         break
  1030                     fncache.setdefault(rev, [])
  1035                     fncache.setdefault(rev, [])