tests/test-hgk.t
author Pierre-Yves David <pierre-yves.david@logilab.fr>
Sat, 28 Jul 2012 13:19:06 +0200
branchstable
changeset 17296 a1f8869f2eee
parent 16913 f2719b387380
child 17959 542d133ea0a3
permissions -rw-r--r--
obsolete: introduce an `_enabled` switch to disable the feature by default Obsolete markers wide-usage and propagation should be avoided by default until the obsolete feature is more mature. This changeset introduce the `_enable` variable and prevent the creation of obsolete marker if the feature is set to `False` (the default). More limitation comes in followup changesets.

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 ..