comparison hgext/rebase.py @ 11546:134eb1c97e94 stable

mq: qrepo.add(mq.added) inside save_dirty inside of doing it manually This should make the MQ API more transparent: callers only have to call save_dirty, and no mq.added magic or knowledge is required.
author Nicolas Dumazet <nicdumz.commits@gmail.com>
date Tue, 13 Jul 2010 22:30:01 +0900
parents 0a044e5ff489
children c91b86a291b0 00f8e7837668
comparison
equal deleted inserted replaced
11545:db9d16233787 11546:134eb1c97e94
364 name, isgit = mqrebase[rev] 364 name, isgit = mqrebase[rev]
365 repo.ui.debug('import mq patch %d (%s)\n' % (state[rev], name)) 365 repo.ui.debug('import mq patch %d (%s)\n' % (state[rev], name))
366 mq.qimport(repo, (), patchname=name, git=isgit, 366 mq.qimport(repo, (), patchname=name, git=isgit,
367 rev=[str(state[rev])]) 367 rev=[str(state[rev])])
368 mq.save_dirty() 368 mq.save_dirty()
369 qrepo = mq.qrepo()
370 if qrepo:
371 qrepo[None].add(mq.added)
372 mq.added = []
373 369
374 def storestatus(repo, originalwd, target, state, collapse, keep, keepbranches, 370 def storestatus(repo, originalwd, target, state, collapse, keep, keepbranches,
375 external): 371 external):
376 'Store the current status to allow recovery' 372 'Store the current status to allow recovery'
377 f = repo.opener("rebasestate", "w") 373 f = repo.opener("rebasestate", "w")