* HG clone using subrepositories with username and password in url
@ 2014-08-27 10:47 Volker Vogelhuber
2014-08-27 11:59 ` Richard Purdie
0 siblings, 1 reply; 2+ messages in thread
From: Volker Vogelhuber @ 2014-08-27 10:47 UTC (permalink / raw)
To: bitbake-devel
[-- 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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: HG clone using subrepositories with username and password in url
2014-08-27 10:47 HG clone using subrepositories with username and password in url Volker Vogelhuber
@ 2014-08-27 11:59 ` Richard Purdie
0 siblings, 0 replies; 2+ messages in thread
From: Richard Purdie @ 2014-08-27 11:59 UTC (permalink / raw)
To: Volker Vogelhuber; +Cc: bitbake-devel
On Wed, 2014-08-27 at 12:47 +0200, Volker Vogelhuber wrote:
> 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.
Wasn't this merged back in April?
http://git.openembedded.org/bitbake/commit/lib/bb/fetch2/hg.py?id=dfa041c940caad12da50126a559afc8de089eeda
?
Cheers,
Richard
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-08-27 11:59 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-27 10:47 HG clone using subrepositories with username and password in url Volker Vogelhuber
2014-08-27 11:59 ` Richard Purdie
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.