Mercurial > hg
changeset 24990:015adbcd92f3
merge with stable
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Sun, 10 May 2015 14:45:13 -0500 |
parents | 3098dcd2d167 (current diff) 65e8dac7b016 (diff) |
children | 4169a4f83548 |
files | tests/test-run-tests.t |
diffstat | 2 files changed, 22 insertions(+), 11 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/histedit.py Sat May 09 16:06:04 2015 -0500 +++ b/hgext/histedit.py Sun May 10 14:45:13 2015 -0500 @@ -252,7 +252,10 @@ for replacement in self.replacements: fp.write('%s%s\n' % (node.hex(replacement[0]), ''.join(node.hex(r) for r in replacement[1]))) - fp.write('%s\n' % self.backupfile) + backupfile = self.backupfile + if not backupfile: + backupfile = '' + fp.write('%s\n' % backupfile) fp.close() def _load(self): @@ -890,21 +893,22 @@ def bootstrapcontinue(ui, state, opts): repo = state.repo - action, currentnode = state.rules.pop(0) - - actobj = actiontable[action].fromrule(state, currentnode) + if state.rules: + action, currentnode = state.rules.pop(0) - s = repo.status() - if s.modified or s.added or s.removed or s.deleted: - actobj.continuedirty() + actobj = actiontable[action].fromrule(state, currentnode) + s = repo.status() if s.modified or s.added or s.removed or s.deleted: - raise util.Abort(_("working copy still dirty")) + actobj.continuedirty() + s = repo.status() + if s.modified or s.added or s.removed or s.deleted: + raise util.Abort(_("working copy still dirty")) - parentctx, replacements = actobj.continueclean() + parentctx, replacements = actobj.continueclean() - state.parentctxnode = parentctx.node() - state.replacements.extend(replacements) + state.parentctxnode = parentctx.node() + state.replacements.extend(replacements) return state
--- a/tests/test-run-tests.t Sat May 09 16:06:04 2015 -0500 +++ b/tests/test-run-tests.t Sun May 10 14:45:13 2015 -0500 @@ -1,5 +1,12 @@ This file tests the behavior of run-tests.py itself. +Avoid interference from actual test env: + + $ unset HGTEST_JOBS + $ unset HGTEST_TIMEOUT + $ unset HGTEST_PORT + $ unset HGTEST_SHELL + Smoke test ============