tests/test-hgk.t
author Guillermo Pérez <bisho@fb.com>
Thu, 15 Nov 2012 15:06:32 -0800
changeset 17945 45766e2a7384
parent 16913 f2719b387380
child 17959 542d133ea0a3
permissions -rw-r--r--
patch: make _addmodehdr a function under trydiff addmodehdr is a header helper, same as diffline, so it doesn't need to be a top-level function and can be nested under trydiff. In upcoming patches we will generalize this approach for all headers.

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

  $ cd ..