# HG changeset patch # User mpm@selenic.com # Date 1124241145 28800 # Node ID c7a3b88505cd2f274006be02405d22c4e2f5bdc3 # Parent f4c7ad1869836c10ef09297c588a184c43605be2 Add basic https support for pull diff --git a/mercurial/hg.py b/mercurial/hg.py --- a/mercurial/hg.py +++ b/mercurial/hg.py @@ -2199,10 +2199,15 @@ class sshrepository: l = int(self.pipei.readline()) return self.pipei.read(l) != "" +class httpsrepository(httprepository): + pass + def repository(ui, path=None, create=0): if path: if path.startswith("http://"): return httprepository(ui, path) + if path.startswith("https://"): + return httpsrepository(ui, path) if path.startswith("hg://"): return httprepository(ui, path.replace("hg://", "http://")) if path.startswith("old-http://"):