Submitter | Pierre-Yves David |
---|---|
Date | March 15, 2017, 7:01 a.m. |
Message ID | <b24451e8f9a6beee5501.1489561278@nodosa.octopoid.net> |
Download | mbox | patch |
Permalink | /patch/19352/ |
State | Accepted |
Headers | show |
Comments
Patch
diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py --- a/mercurial/localrepo.py +++ b/mercurial/localrepo.py @@ -119,7 +119,9 @@ legacycaps = moderncaps.union(set(['chan class localpeer(peer.peerrepository): '''peer for a local repo; reflects only the most recent API''' - def __init__(self, repo, caps=moderncaps): + def __init__(self, repo, caps=None): + if caps is None: + caps = moderncaps.copy() peer.peerrepository.__init__(self) self._repo = repo.filtered('served') self.ui = repo.ui