tests/test-hgk.t
author Idan Kamara <idankk86@gmail.com>
Fri, 24 Jun 2011 16:30:43 +0300
branchstable
changeset 14727 d4b9d3b91ce7
parent 12431 d911aa2b8570
child 16913 f2719b387380
permissions -rw-r--r--
dispatch: check for None before closing repo We were trying to call close() if repo == None and req.repo != None. This can happen when running commands that don't take a repo.

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
  committer test 0 0
  revision 0
  branch default
  
  adda