equal
deleted
inserted
replaced
104 # accept old "text/plain" and "application/hg-changegroup" for now |
104 # accept old "text/plain" and "application/hg-changegroup" for now |
105 if not (proto.startswith('application/mercurial-') or |
105 if not (proto.startswith('application/mercurial-') or |
106 proto.startswith('text/plain') or |
106 proto.startswith('text/plain') or |
107 proto.startswith('application/hg-changegroup')): |
107 proto.startswith('application/hg-changegroup')): |
108 self.ui.debug("requested URL: '%s'\n" % url.hidepassword(cu)) |
108 self.ui.debug("requested URL: '%s'\n" % url.hidepassword(cu)) |
109 raise error.RepoError(_("'%s' does not appear to be an hg repository") |
109 raise error.RepoError(_("'%s' does not appear to be an hg repository:\n" |
110 % safeurl) |
110 "---%%<--- (%s)\n%s\n---%%<---\n") |
|
111 % (safeurl, proto, resp.read())) |
111 |
112 |
112 if proto.startswith('application/mercurial-'): |
113 if proto.startswith('application/mercurial-'): |
113 try: |
114 try: |
114 version = proto.split('-', 1)[1] |
115 version = proto.split('-', 1)[1] |
115 version_info = tuple([int(n) for n in version.split('.')]) |
116 version_info = tuple([int(n) for n in version.split('.')]) |