* [PATCH] bitbake: lib/bb/fetch/hg: fix fetching from a mercurial repository
@ 2010-09-06 18:51 Eric Bénard
2010-09-06 19:20 ` Frans Meulenbroeks
0 siblings, 1 reply; 3+ messages in thread
From: Eric Bénard @ 2010-09-06 18:51 UTC (permalink / raw)
To: openembedded-devel
* without this fix, we get :
updating working directory
74 files updated, 0 files merged, 0 files removed, 0 files unresolved
abort: There is no Mercurial repository here (.hg not found)!
Signed-off-by: Eric Bénard <eric@eukrea.com>
Tested-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
---
lib/bb/fetch/hg.py | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/lib/bb/fetch/hg.py b/lib/bb/fetch/hg.py
index d075638..bb156ed 100644
--- a/lib/bb/fetch/hg.py
+++ b/lib/bb/fetch/hg.py
@@ -138,6 +138,7 @@ class Hg(Fetch):
# Even when we clone (fetch), we still need to update as hg's clone
# won't checkout the specified revision if its on a branch
updatecmd = self._buildhgcommand(ud, d, "update")
+ os.chdir(ud.moddir)
bb.msg.debug(1, bb.msg.domain.Fetcher, "Running %s" % updatecmd)
runfetchcmd(updatecmd, d)
--
1.6.3.3
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] bitbake: lib/bb/fetch/hg: fix fetching from a mercurial repository
2010-09-06 18:51 [PATCH] bitbake: lib/bb/fetch/hg: fix fetching from a mercurial repository Eric Bénard
@ 2010-09-06 19:20 ` Frans Meulenbroeks
2010-09-06 19:25 ` Eric Bénard
0 siblings, 1 reply; 3+ messages in thread
From: Frans Meulenbroeks @ 2010-09-06 19:20 UTC (permalink / raw)
To: openembedded-devel
2010/9/6 Eric Bénard <eric@eukrea.com>:
> * without this fix, we get :
> updating working directory
> 74 files updated, 0 files merged, 0 files removed, 0 files unresolved
> abort: There is no Mercurial repository here (.hg not found)!
>
> Signed-off-by: Eric Bénard <eric@eukrea.com>
> Tested-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
> ---
> lib/bb/fetch/hg.py | 1 +
> 1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/lib/bb/fetch/hg.py b/lib/bb/fetch/hg.py
> index d075638..bb156ed 100644
> --- a/lib/bb/fetch/hg.py
> +++ b/lib/bb/fetch/hg.py
> @@ -138,6 +138,7 @@ class Hg(Fetch):
> # Even when we clone (fetch), we still need to update as hg's clone
> # won't checkout the specified revision if its on a branch
> updatecmd = self._buildhgcommand(ud, d, "update")
> + os.chdir(ud.moddir)
> bb.msg.debug(1, bb.msg.domain.Fetcher, "Running %s" % updatecmd)
> runfetchcmd(updatecmd, d)
>
> --
> 1.6.3.3
I understood from Eric that even with this patch one needs mercurial
installed on the host.
I did install it before, and have not tested without it, but with
mercurial installed and this patch hg recipes (like ushare) work.
Enjoy, Frans
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] bitbake: lib/bb/fetch/hg: fix fetching from a mercurial repository
2010-09-06 19:20 ` Frans Meulenbroeks
@ 2010-09-06 19:25 ` Eric Bénard
0 siblings, 0 replies; 3+ messages in thread
From: Eric Bénard @ 2010-09-06 19:25 UTC (permalink / raw)
To: openembedded-devel
Le 06/09/2010 21:20, Frans Meulenbroeks a écrit :
> 2010/9/6 Eric Bénard<eric@eukrea.com>:
>> * without this fix, we get :
>> updating working directory
>> 74 files updated, 0 files merged, 0 files removed, 0 files unresolved
>> abort: There is no Mercurial repository here (.hg not found)!
>>
>> Signed-off-by: Eric Bénard<eric@eukrea.com>
>> Tested-by: Frans Meulenbroeks<fransmeulenbroeks@gmail.com>
>> ---
>> lib/bb/fetch/hg.py | 1 +
>> 1 files changed, 1 insertions(+), 0 deletions(-)
>>
>> diff --git a/lib/bb/fetch/hg.py b/lib/bb/fetch/hg.py
>> index d075638..bb156ed 100644
>> --- a/lib/bb/fetch/hg.py
>> +++ b/lib/bb/fetch/hg.py
>> @@ -138,6 +138,7 @@ class Hg(Fetch):
>> # Even when we clone (fetch), we still need to update as hg's clone
>> # won't checkout the specified revision if its on a branch
>> updatecmd = self._buildhgcommand(ud, d, "update")
>> + os.chdir(ud.moddir)
>> bb.msg.debug(1, bb.msg.domain.Fetcher, "Running %s" % updatecmd)
>> runfetchcmd(updatecmd, d)
>>
>> --
>> 1.6.3.3
>
> I understood from Eric that even with this patch one needs mercurial
> installed on the host.
> I did install it before, and have not tested without it, but with
> mercurial installed and this patch hg recipes (like ushare) work.
>
if mercurial is not installed on the host, the error is :
/usr/bin/env: hg: No such file or directory
Eric
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-09-06 19:26 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-06 18:51 [PATCH] bitbake: lib/bb/fetch/hg: fix fetching from a mercurial repository Eric Bénard
2010-09-06 19:20 ` Frans Meulenbroeks
2010-09-06 19:25 ` Eric Bénard
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.