summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric BENARD <eric@eukrea.com>2010-09-06 08:51:52 +0000
committerChris Larson <chris_larson@mentor.com>2010-11-12 15:01:03 -0700
commitaffbf8c6409b733e0d5c7414628f926ef250040e (patch)
treecbcb645b9980b6b0e4b0a01417e35e6186b4e40d
parentd99de1c3f35a01f6d06b2965da823ae3cd16d0eb (diff)
downloadbitbake-affbf8c6409b733e0d5c7414628f926ef250040e.tar.gz
bitbake: lib/bb/fetch/hg: fix fetching from a mercurial repository
* 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> Signed-off-by: Chris Larson <chris_larson@mentor.com>
-rw-r--r--lib/bb/fetch/hg.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/bb/fetch/hg.py b/lib/bb/fetch/hg.py
index 7643e159e..b1c1d0bd6 100644
--- a/lib/bb/fetch/hg.py
+++ b/lib/bb/fetch/hg.py
@@ -135,6 +135,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)