mercurial/patch.py
changeset 23750 e864353f8c6b
parent 23665 a90499a6ad8d
child 23751 30c6e85aac77
equal deleted inserted replaced
23749:a387b0390082 23750:e864353f8c6b
  1656     modified, added, removed = changes[:3]
  1656     modified, added, removed = changes[:3]
  1657 
  1657 
  1658     if not modified and not added and not removed:
  1658     if not modified and not added and not removed:
  1659         return []
  1659         return []
  1660 
  1660 
  1661     revs = None
       
  1662     hexfunc = repo.ui.debugflag and hex or short
  1661     hexfunc = repo.ui.debugflag and hex or short
  1663     revs = [hexfunc(node) for node in [ctx1.node(), ctx2.node()] if node]
  1662     revs = [hexfunc(node) for node in [ctx1.node(), ctx2.node()] if node]
  1664 
  1663 
  1665     copy = {}
  1664     copy = {}
  1666     if opts.git or opts.upgrade:
  1665     if opts.git or opts.upgrade: