mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 00:45:18 +03:00
64adaa7b62
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 |
||
---|---|---|
.. | ||
__init__.py | ||
common.py | ||
hgweb_mod.py | ||
hgwebdir_mod.py | ||
protocol.py | ||
request.py | ||
server.py | ||
webcommands.py | ||
webutil.py | ||
wsgicgi.py |