Mercurial > hg
changeset 29493:4533f5b47949
perf: add historical portability policy for future reference
author | FUJIWARA Katsunori <foozy@lares.dti.ne.jp> |
---|---|
date | Tue, 05 Jul 2016 07:25:51 +0900 |
parents | d23619990160 |
children | 3b5389ef5cfe |
files | contrib/perf.py |
diffstat | 1 files changed, 17 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/contrib/perf.py Sat Jul 09 14:01:55 2016 +0800 +++ b/contrib/perf.py Tue Jul 05 07:25:51 2016 +0900 @@ -1,6 +1,23 @@ # perf.py - performance test routines '''helper extension to measure performance''' +# "historical portability" policy of perf.py: +# +# We have to do: +# - make perf.py "loadable" with as wide Mercurial version as possible +# This doesn't mean that perf commands work correctly with that Mercurial. +# BTW, perf.py itself has been available since 1.1 (or eb240755386d). +# - make historical perf command work correctly with as wide Mercurial +# version as possible +# +# We have to do, if possible with reasonable cost: +# - make recent perf command for historical feature work correctly +# with early Mercurial +# +# We don't have to do: +# - make perf command for recent feature work correctly with early +# Mercurial + from __future__ import absolute_import import functools import os