hgext/mq.py
changeset 18371 ff2c89ebf5d4
parent 18364 6252b4f1c4b4
child 18644 3e92772d5383
equal deleted inserted replaced
18370:c605e12dd622 18371:ff2c89ebf5d4
  3030                     start = i
  3030                     start = i
  3031                     break
  3031                     break
  3032             del q.applied[start:end]
  3032             del q.applied[start:end]
  3033             q.savedirty()
  3033             q.savedirty()
  3034 
  3034 
  3035     revs = list(rootnodes)
  3035     revs = sorted(rootnodes)
  3036     if update and opts.get('keep'):
  3036     if update and opts.get('keep'):
  3037         wlock = repo.wlock()
  3037         wlock = repo.wlock()
  3038         try:
  3038         try:
  3039             urev = repo.mq.qparents(repo, revs[0])
  3039             urev = repo.mq.qparents(repo, revs[0])
  3040             repo.dirstate.rebuild(urev, repo[urev].manifest())
  3040             repo.dirstate.rebuild(urev, repo[urev].manifest())