mercurial/scmutil.py
changeset 50649 17a86f650059
parent 50626 9096b00fd881
child 50942 b3174be5e7f7
equal deleted inserted replaced
50648:88362b8bc476 50649:17a86f650059
  1064     assert fixphase or targetphase is None
  1064     assert fixphase or targetphase is None
  1065     if not replacements and not moves:
  1065     if not replacements and not moves:
  1066         return
  1066         return
  1067 
  1067 
  1068     # translate mapping's other forms
  1068     # translate mapping's other forms
  1069     if not util.safehasattr(replacements, b'items'):
  1069     if not util.safehasattr(replacements, 'items'):
  1070         replacements = {(n,): () for n in replacements}
  1070         replacements = {(n,): () for n in replacements}
  1071     else:
  1071     else:
  1072         # upgrading non tuple "source" to tuple ones for BC
  1072         # upgrading non tuple "source" to tuple ones for BC
  1073         repls = {}
  1073         repls = {}
  1074         for key, value in replacements.items():
  1074         for key, value in replacements.items():