Mercurial > public > mercurial-scm > hg
comparison mercurial/commands.py @ 16593:e462313ef1bd stable
bisect: save current state before running a command
This prevents an external command being run during a bisect from
querying stale data.
author | Bryan O'Sullivan <bryano@fb.com> |
---|---|
date | Wed, 02 May 2012 17:15:11 -0700 |
parents | 46e9ed223d2c |
children | ddd4996740c7 265daefc00b2 |
comparison
equal
deleted
inserted
replaced
16591:46e9ed223d2c | 16593:e462313ef1bd |
---|---|
645 if command: | 645 if command: |
646 changesets = 1 | 646 changesets = 1 |
647 try: | 647 try: |
648 while changesets: | 648 while changesets: |
649 # update state | 649 # update state |
650 hbisect.save_state(repo, state) | |
650 status = util.system(command, out=ui.fout) | 651 status = util.system(command, out=ui.fout) |
651 if status == 125: | 652 if status == 125: |
652 transition = "skip" | 653 transition = "skip" |
653 elif status == 0: | 654 elif status == 0: |
654 transition = "good" | 655 transition = "good" |