tests/test-simple-update
author Nicolas Dumazet <nicdumz.commits@gmail.com>
Thu, 27 Aug 2009 14:15:04 +0200
changeset 9427 d37c0f4e8f48
parent 3736 ad3d5b4367cb
permissions -rwxr-xr-x
parsers.c: parse_manifest: fixing refcount of flags When flags was DECREF'ed, scope was referencing to the outer variable, outside of the block. It was in fact always NULL: the real Python object was never decref'ed.

#!/bin/sh

set -e

mkdir test
cd test
echo foo>foo
hg init
hg addremove
hg commit -m "1"
hg verify

hg clone . ../branch
cd ../branch
hg co
echo bar>>foo
hg commit -m "2"

cd ../test
hg pull ../branch
hg verify
hg co
cat foo
hg manifest --debug