Your browser was unable to load all of the resources. They may have been blocked by your firewall, proxy or browser configuration.
Press Ctrl+F5 or Ctrl+Shift+R to have your browser try again.

How to clone in noninteractive mode mercurial repository with subrepositories? #3786

dmelnicz ·

Hi,
I'm cloning hg repo and I have to give password and user for each subrepository. It works nice by hand, but it seems that QB doesn't support that option. I'm missing something?
Is there any workaround how to do that in QB?

  • replies 3
  • views 2741
  • stars 0
steveluo2 ADMIN ·

Can you run clone command by adding username and password in the url like below:

hg clone http://username:password@your-hg/repo/nested

Or do you use some other method to checkout the subrepo?

dmelnicz ·

I'm using built in step "Repository > Checkout" and it gives me:

Failed to run command: hg -y clone https://user:******@hg-repo.com/index.py/project /path/to/project
Command return code: 255
Command error output: abort: http authorization required for https://hg-repo.com/index.py/project-SecuritySubRepo (in subrepo src/security)
steveluo2 ADMIN ·

It seems that hg will prompt for password after visiting main repo. To avoid this, you may consider using a global authentication.

Please refer to below post in stackoverflow:
https://stackoverflow.com/a/2584425

If you are using the global authentication, you needn't input username and password in QuickBuild anymore.