sapling/mercurial/hgweb
Gregory Szorc 64adaa7b62 revset: pass repo when passing ui
The repo instance is currently only used to provide a changeset
lookup function as part of parsing revsets. I /think/ this allows
node fragments to resolve. I'm not sure why we wouldn't want this
to always "just work" if parsing a revset string.

Plus, an upcoming commit will introduce a new consumer that needs a
handle on the repo. So passing it more often will make that code
work more.

Passing a repo instance in all callers of revset.match* results in
a bunch of test changes. Notably, branch and tags caches get
populated as part of evaluating revsets. I'm not sure if this is
desirable. So this patch takes the conservative approach and only
passes the repo if we're passing a ui instance.

Differential Revision: https://phab.mercurial-scm.org/D97
2017-07-15 15:51:57 -07:00
..
__init__.py server: move service factory from hgweb 2016-10-15 14:09:36 +09:00
common.py hgweb: use context manager for file I/O 2017-03-31 22:30:38 -07:00
hgweb_mod.py hgweb: use ui._unset to prevent a warning in configitems 2017-07-03 13:04:35 +02:00
hgwebdir_mod.py hgweb: use ui._unset to prevent a warning in configitems 2017-07-03 13:04:35 +02:00
protocol.py configitems: register the 'server.zliblevel' config 2017-06-30 03:44:16 +02:00
request.py hgweb: use absolute_import 2015-10-31 22:07:40 +09:00
server.py py3: replace os.name with pycompat.osname (part 1 of 2) 2016-12-19 00:16:52 +05:30
webcommands.py revset: pass repo when passing ui 2017-07-15 15:51:57 -07:00
webutil.py mdiff: add a hunkinrange helper function 2017-04-01 12:24:59 +02:00
wsgicgi.py py3: replace os.environ with encoding.environ (part 3 of 5) 2016-12-18 01:54:36 +05:30