tests/test-hgk.t
author Bryan O'Sullivan <bryano@fb.com>
Thu, 11 Apr 2013 13:30:27 -0700
changeset 18907 af9fa8d4c939
parent 18807 cf72fd8b3072
child 23451 5fb1fc2e1281
permissions -rw-r--r--
lock: if we fork, ensure that only the parent releases This prevents us from having a bunch of errant worker processes all try to release a lock if a problem occurs. (Releasing the lock more than once is harmless; it's invoking the associated callbacks we want to avoid.)

Minimal hgk check

  $ echo "[extensions]" >> $HGRCPATH
  $ echo "hgk=" >> $HGRCPATH
  $ hg init repo
  $ cd repo
  $ echo a > a
  $ hg ci -Am adda
  adding a
  $ hg debug-cat-file commit 0
  tree a0c8bcbbb45c
  parent 000000000000
  author test 0 0
  revision 0
  branch default
  phase draft
  
  adda

  $ cd ..