hgext/strip.py
changeset 44452 9d2b2df2c2ba
parent 43117 8ff1ecfadcd1
child 44856 b7808443ed6a
equal deleted inserted replaced
44449:ff72bd52d56a 44452:9d2b2df2c2ba
   226         update = any(
   226         update = any(
   227             p != nullid and cl.rev(p) in strippedrevs
   227             p != nullid and cl.rev(p) in strippedrevs
   228             for p in repo.dirstate.parents()
   228             for p in repo.dirstate.parents()
   229         )
   229         )
   230 
   230 
   231         rootnodes = set(cl.node(r) for r in roots)
   231         rootnodes = {cl.node(r) for r in roots}
   232 
   232 
   233         q = getattr(repo, 'mq', None)
   233         q = getattr(repo, 'mq', None)
   234         if q is not None and q.applied:
   234         if q is not None and q.applied:
   235             # refresh queue state if we're about to strip
   235             # refresh queue state if we're about to strip
   236             # applied patches
   236             # applied patches