From: Volker Vogelhuber <v.vogelhuber@digitalendoscopy.de>
To: <bitbake-devel@lists.openembedded.org>
Subject: HG clone using subrepositories with username and password in url
Date: Wed, 27 Aug 2014 12:47:42 +0200 [thread overview]
Message-ID: <53FDB74E.8000600@digitalendoscopy.de> (raw)
[-- Attachment #1: Type: text/plain, Size: 240 bytes --]
In case one uses mercurial subrepositories, updating to a specific
revision may need an additional authentication for the subrepository. So
the attached patch adds the missing authentication parameters to the hg
update call.
[-- Attachment #2: 0001-Fixed-authentication-during-update-in-case-of-using-.patch --]
[-- Type: text/x-patch, Size: 1291 bytes --]
From 45f7226b02e0911f7a612ab208b2139cbd03ec56 Mon Sep 17 00:00:00 2001
From: Volker Vogelhuber <v.vogelhuber@digitalendoscopy.de>
Date: Wed, 27 Aug 2014 12:41:35 +0200
Subject: [PATCH 1/1] Fixed authentication during update in case of using
subrepositories
Signed-off-by: Volker Vogelhuber <v.vogelhuber@digitalendoscopy.de>
---
bitbake/lib/bb/fetch2/hg.py | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/bitbake/lib/bb/fetch2/hg.py b/bitbake/lib/bb/fetch2/hg.py
index cf21481..ab7b5f8 100644
--- a/bitbake/lib/bb/fetch2/hg.py
+++ b/bitbake/lib/bb/fetch2/hg.py
@@ -120,7 +120,10 @@ class Hg(FetchMethod):
else:
cmd = "%s pull" % (basecmd)
elif command == "update":
- cmd = "%s update -C %s" % (basecmd, " ".join(options))
+ if ud.user and ud.pswd:
+ cmd = "%s --config auth.default.prefix=* --config auth.default.username=%s --config auth.default.password=%s --config \"auth.default.schemes=%s\" update -C %s" % (basecmd, ud.user, ud.pswd, proto, " ".join(options))
+ else:
+ cmd = "%s update -C %s" % (basecmd, " ".join(options))
else:
raise FetchError("Invalid hg command %s" % command, ud.url)
--
1.9.1
next reply other threads:[~2014-08-27 11:27 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-27 10:47 Volker Vogelhuber [this message]
2014-08-27 11:59 ` HG clone using subrepositories with username and password in url Richard Purdie
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=53FDB74E.8000600@digitalendoscopy.de \
--to=v.vogelhuber@digitalendoscopy.de \
--cc=bitbake-devel@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.