tests/test-issue1089.t
author Bryan O'Sullivan <bos@serpentine.com>
Wed, 23 Dec 2015 16:22:20 -0800
changeset 27539 23541bdd1610
parent 26420 2fc86d92c4a9
child 35400 4441705b7111
permissions -rw-r--r--
test-bundle2-format: force gc so a GeneratorExit will be thrown PyPy has looser semantics than CPython for when a generator's close method will be called. Forcing the gc causes it to be called at the right moment.

https://bz.mercurial-scm.org/1089

  $ hg init
  $ mkdir a
  $ echo a > a/b
  $ hg ci -Am m
  adding a/b

  $ hg rm a
  removing a/b (glob)
  $ hg ci -m m a

  $ mkdir a b
  $ echo a > a/b
  $ hg ci -Am m
  adding a/b

  $ hg rm a
  removing a/b (glob)
  $ cd b

Relative delete:

  $ hg ci -m m ../a

  $ cd ..