Hello again, Bridger.

On Thu, Jun 05, 2025 at 21:01:46 +0000, Alan Mackenzie wrote:
> On Thu, Jun 05, 2025 at 20:44:44 +0000, Bridger Dyson-Smith wrote:
> >    Hi Alan -Â
> >    On Thu, Jun 5, 2025 at 7:28â¯PM Alan Mackenzie <[1]a...@muc.de> wrote:

> >      Hello, Mercurial.
> >      I'm using Mercurial 6.8.2.
> >      I'm trying to clone a repository with lots of subrepositories.  The
> >      command I tried was:
> >      Â  Â  $ hg clone
> >      ssh://[2]h...@foss.heptapod.net/xemacs/xemacs-packages xemacs-packages
> >      ..  This started working, but it prompted me for my ssh passphrase
> >      for
> >      EVERY damned subrepo in the repository.  There are over 130 of
> >      these, and
> >      it is impractical to spend many hours typing in my passphrase 130
> >      times,
> >      so I aborted the cloning.
> >      I tried adding the option -S (for "subrepo") to the above command,
> >      but
> >      the clone command doesn't accept it.
> >      How can I clone this repository such that I only need to enter my
> >      passphrase once, or at a maximum a few times?

> >    Are you using `ssh-agent` to cache your identity? That should store
> >    your credentials and keep you from needing to constantly re-enter your
> >    passphrase.

> I didn't know about ssh-agent and, looking at its man page, it seems to
> be just what I need.

> >    Hopefully that's helpful.

> Yes, I think it's very helpful!

Using ssh-agent, I was able to clone the said repository with lots of
subrepos with just entering my passphrase once.  Thanks!

Question: why is there no -S flag available on hg clone?  That would
have saved me a lot of learning new things.  ;-)

> >    Best,
> >    Bridger

-- 
Alan Mackenzie (Nuremberg, Germany).
_______________________________________________
Mercurial mailing list
Mercurial@lists.mercurial-scm.org
https://lists.mercurial-scm.org/mailman/listinfo/mercurial

Reply via email to