[PATCH] cmdserver: restore old working dir after dispatch when we have --cwd

Thomas Arendsen Hein thomas at intevation.de
Fri Jul 15 06:06:03 CDT 2011


* Matt Mackall <mpm at selenic.com> [20110713 00:33]:
> On Mon, 2011-07-11 at 17:50 +0300, Idan Kamara wrote:
> > # HG changeset patch
> > # User Idan Kamara <idankk86 at gmail.com>
> > # Date 1310395785 -10800
> > # Node ID 7fcff834a2fe3c0326454302d4eacca1a89a3bfe
> > # Parent  2f3e7fc16f69a36832f67dc588dbeb0ff40015eb
> > cmdserver: restore old working dir after dispatch when we have --cwd
> 
> Also queued for stable.

I really like the -c option for bisect:

hg bisect -r
hg bisect -b stable
hg bisect -g 1.9
hg bisect -c "contrib/check-code.py tests/test-commandserver.py"
Changeset 14843:e9264b45237d: good
Changeset 14862:abf915f537be: good
tests/test-commandserver.py:127:
 >     open('foo/bar', 'w').write('a')
 use util.readfile() instead
 always assign an opened file to a variable, and close it afterwards
 always assign an opened file to a variable, and close it afterwards
Changeset 14865:eb914541a950: bad
Changeset 14863:1c148e935244: good
tests/test-commandserver.py:127:
 >     open('foo/bar', 'w').write('a')
 use util.readfile() instead
 always assign an opened file to a variable, and close it afterwards
 always assign an opened file to a variable, and close it afterwards
Changeset 14864:1b872599f39f: bad
The first bad revision is:
changeset:   14864:1b872599f39f
branch:      stable
user:        Idan Kamara <idankk86 at gmail.com>
date:        Mon Jul 11 17:49:45 2011 +0300
summary:     cmdserver: restore old working dir after dispatch when we have --cwd

-- 
thomas at intevation.de - http://intevation.de/~thomas/ - OpenPGP key: 0x5816791A
Intevation GmbH, Neuer Graben 17, 49074 Osnabrueck - AG Osnabrueck, HR B 18998
Geschaeftsfuehrer: Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner


More information about the Mercurial-devel mailing list