# HG changeset patch # User Matt Mackall # Date 1308695240 18000 # Node ID 8deebb5777511369a852e5cb42e69844c40ebf7a # Parent 640bfe96ddcfdf5e168b580349f31176481b87aa# Parent 88a53081fb2167536c19db10bc5d5e15d6b589a0 merge with stable diff -r 640bfe96ddcf -r 8deebb577751 mercurial/commands.py --- a/mercurial/commands.py Tue Jun 21 15:26:44 2011 -0500 +++ b/mercurial/commands.py Tue Jun 21 17:27:20 2011 -0500 @@ -4182,7 +4182,7 @@ if not pats and not opts.get('all'): raise util.Abort(_('no files or directories specified'), - hint=_('use --all to revert all files')) + hint=_('use --all to discard all changes')) ctx = scmutil.revsingle(repo, opts.get('rev')) node = ctx.node() diff -r 640bfe96ddcf -r 8deebb577751 mercurial/dispatch.py --- a/mercurial/dispatch.py Tue Jun 21 15:26:44 2011 -0500 +++ b/mercurial/dispatch.py Tue Jun 21 17:27:20 2011 -0500 @@ -654,7 +654,7 @@ return runcommand(lui, repo, cmd, fullargs, ui, options, d, cmdpats, cmdoptions) finally: - if repo: + if repo != req.repo: repo.close() def _runcommand(ui, options, cmd, cmdfunc): diff -r 640bfe96ddcf -r 8deebb577751 mercurial/hook.py --- a/mercurial/hook.py Tue Jun 21 15:26:44 2011 -0500 +++ b/mercurial/hook.py Tue Jun 21 17:27:20 2011 -0500 @@ -107,7 +107,7 @@ if 'HG_URL' in env and env['HG_URL'].startswith('remote:http'): r = util.system(cmd, environ=env, cwd=cwd, out=ui) else: - r = util.system(cmd, environ=env, cwd=cwd) + r = util.system(cmd, environ=env, cwd=cwd, out=ui.fout) if r: desc, r = util.explainexit(r) if throw: diff -r 640bfe96ddcf -r 8deebb577751 tests/test-confused-revert.t --- a/tests/test-confused-revert.t Tue Jun 21 15:26:44 2011 -0500 +++ b/tests/test-confused-revert.t Tue Jun 21 17:27:20 2011 -0500 @@ -60,7 +60,7 @@ $ hg revert abort: no files or directories specified - (use --all to revert all files) + (use --all to discard all changes) [255] Revert should be ok now: diff -r 640bfe96ddcf -r 8deebb577751 tests/test-revert.t --- a/tests/test-revert.t Tue Jun 21 15:26:44 2011 -0500 +++ b/tests/test-revert.t Tue Jun 21 17:27:20 2011 -0500 @@ -186,7 +186,7 @@ $ hg revert -rtip abort: no files or directories specified - (use --all to revert all files) + (use --all to discard all changes) [255] should succeed