mercurial/templates/json/changelist.tmpl
author Yuya Nishihara <yuya@tcha.org>
Sun, 18 Jun 2017 08:59:09 +0900
changeset 33016 d3d36bcdf036
parent 24588 0bf54479a9eb
permissions -rw-r--r--
dagop: just compare with the last value to deduplicate input of revancestors() Since we're using a max heap, the current rev should be a duplicate only if it equals to the previous one. We don't have to maintain the whole seen set. # reverse(ancestors(tip)) using hg repo 0) 0.086420 1) 0.081051

\{
  "node": {node|json},
  "changeset_count": {changesets|json},
  "changesets": [{join(entries%changelistentry, ", ")}]
}