hgext/remotefilelog/__init__.py
changeset 44452 9d2b2df2c2ba
parent 43862 5606e1cb4685
child 45072 a56ba57c837d
equal deleted inserted replaced
44449:ff72bd52d56a 44452:9d2b2df2c2ba
   735                     )
   735                     )
   736         else:
   736         else:
   737             # "link" is actually wrong here (it is set to len(changelog))
   737             # "link" is actually wrong here (it is set to len(changelog))
   738             # if changelog remains unchanged, skip writing file revisions
   738             # if changelog remains unchanged, skip writing file revisions
   739             # but still do a sanity check about pending multiple revisions
   739             # but still do a sanity check about pending multiple revisions
   740             if len(set(x[3] for x in pendingfilecommits)) > 1:
   740             if len({x[3] for x in pendingfilecommits}) > 1:
   741                 raise error.ProgrammingError(
   741                 raise error.ProgrammingError(
   742                     b'pending multiple integer revisions are not supported'
   742                     b'pending multiple integer revisions are not supported'
   743                 )
   743                 )
   744         del pendingfilecommits[:]
   744         del pendingfilecommits[:]
   745         return node
   745         return node