On Thu, 16 Feb 2017 16:41:09 -0500, Matt Harbison wrote: > # HG changeset patch > # User Matt Harbison <matt_harbi...@yahoo.com> > # Date 1487087965 18000 > # Tue Feb 14 10:59:25 2017 -0500 > # Node ID 27a4bc77e8b8e50abc76c387f117082e5853c47e > # Parent 4f2862487d789edc1f36b5687d828a2914e1dc32 > clone: use the HTTP 301 location to record the default path
> @@ -230,6 +230,16 @@ > if self._url.rstrip('/') != resp_url.rstrip('/'): > if not self.ui.quiet: > self.ui.warn(_('real URL is %s\n') % resp_url) > + if resp.status == httplib.MOVED_PERMANENTLY: > + u = util.url(resp_url.rstrip('/')) > + > + # The path has auth info on creation. Restore that here. > + creds = self._authinfo > + if creds: > + u.user = creds[2] > + u.passwd = creds[3] or None > + self.path = str(u) I didn't carefully review this patch, but is it safe to reuse the credential for redirected server? _______________________________________________ Mercurial-devel mailing list Mercurial-devel@mercurial-scm.org https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel