Skip to content
Snippets Groups Projects
Commit 3d35304b authored by Martin von Zweigbergk's avatar Martin von Zweigbergk
Browse files

context: move logic from changectx.__init__ to localrepo.__getitem__ (API)

My motivation for this change was to make repo[node] not load the
dirstate (more about that in the next patch), but I think it makes
more sense this way too. For example, raising RepoLookupError seems to
belong better in the repo lookup function
(i.e. localrepo.__getitem__).

This makes the changectx constructor very simple -- it just assigns
the given repo, revnum, and nodeid to properties.

Differential Revision: https://phab.mercurial-scm.org/D4827
parent e1e3d1b4
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment