##// END OF EJS Templates
merge with stable
Martin Geisler -
r13906:a1e41807 merge default
parent child Browse files
Show More
@@ -412,15 +412,14 b' the path to the ``.py`` file (including '
412 defines the extension.
412 defines the extension.
413
413
414 To explicitly disable an extension that is enabled in an hgrc of
414 To explicitly disable an extension that is enabled in an hgrc of
415 broader scope, prepend its path with ``!``, as in
415 broader scope, prepend its path with ``!``, as in ``foo = !/ext/path``
416 ``hgext.foo = !/ext/path`` or ``hgext.foo = !`` when path is not
416 or ``foo = !`` when path is not supplied.
417 supplied.
418
417
419 Example for ``~/.hgrc``::
418 Example for ``~/.hgrc``::
420
419
421 [extensions]
420 [extensions]
422 # (the mq extension will get loaded from Mercurial's path)
421 # (the mq extension will get loaded from Mercurial's path)
423 hgext.mq =
422 mq =
424 # (this extension will get loaded from the file specified)
423 # (this extension will get loaded from the file specified)
425 myfeature = ~/.hgext/myfeature.py
424 myfeature = ~/.hgext/myfeature.py
426
425
@@ -740,8 +740,12 b' def graph(web, req, tmpl):'
740 downrev = max(0, rev - revcount)
740 downrev = max(0, rev - revcount)
741 count = len(web.repo)
741 count = len(web.repo)
742 changenav = webutil.revnavgen(rev, revcount, count, web.repo.changectx)
742 changenav = webutil.revnavgen(rev, revcount, count, web.repo.changectx)
743 startrev = rev
744 # if starting revision is less than 60 set it to uprev
745 if rev < web.maxshortchanges:
746 startrev = uprev
743
747
744 dag = graphmod.revisions(web.repo, rev, downrev)
748 dag = graphmod.revisions(web.repo, startrev, downrev)
745 tree = list(graphmod.colored(dag))
749 tree = list(graphmod.colored(dag))
746 canvasheight = (len(tree) + 1) * bg_height - 27
750 canvasheight = (len(tree) + 1) * bg_height - 27
747 data = []
751 data = []
General Comments 0
You need to be logged in to leave comments. Login now