peer: introduce peer methods to prepare for peer classes
This introduces a peer method into all repository classes, which currently simply returns self. It also changes hg.repository so it now raises an exception if the supplied paths does not resolve to a localrepo or descendant. Finally, all call sites are changed to use the peer and local methods as appropriate, where peer is used whenever the code is dealing with a remote repository (even if it's on local disk).
Showing
- hgext/histedit.py 1 addition, 1 deletionhgext/histedit.py
- hgext/largefiles/localstore.py 2 additions, 2 deletionshgext/largefiles/localstore.py
- hgext/largefiles/overrides.py 1 addition, 1 deletionhgext/largefiles/overrides.py
- hgext/mq.py 11 additions, 9 deletionshgext/mq.py
- hgext/relink.py 0 additions, 2 deletionshgext/relink.py
- hgext/transplant.py 5 additions, 5 deletionshgext/transplant.py
- mercurial/bundlerepo.py 4 additions, 4 deletionsmercurial/bundlerepo.py
- mercurial/commands.py 9 additions, 8 deletionsmercurial/commands.py
- mercurial/discovery.py 1 addition, 1 deletionmercurial/discovery.py
- mercurial/hg.py 45 additions, 36 deletionsmercurial/hg.py
- mercurial/repo.py 3 additions, 0 deletionsmercurial/repo.py
- mercurial/setdiscovery.py 1 addition, 1 deletionmercurial/setdiscovery.py
- mercurial/subrepo.py 4 additions, 3 deletionsmercurial/subrepo.py
Loading
Please register or sign in to comment