diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2009-05-11 21:27:24 +0000 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2009-05-11 21:27:24 +0000 |
commit | 36e892cedf337b771b51852d4875962abaa199d7 (patch) | |
tree | bfc2457735d7c256add206b3cfed425ee4583ec5 | |
parent | 531c2f77e305c229d39d0390896ee56da59ca6de (diff) | |
download | bitbake-36e892cedf337b771b51852d4875962abaa199d7.tar.gz |
fetch/hg.py: Fix hg checkouts of specific revisions (from Poky)
-rw-r--r-- | ChangeLog | 1 | ||||
-rw-r--r-- | lib/bb/fetch/hg.py | 9 |
2 files changed, 7 insertions, 3 deletions
@@ -170,6 +170,7 @@ Changes in Bitbake 1.9.x: - Also allow user and pswd options in SRC_URIs globally (from Poky) - Improve proxy handling when using mirrors (from Poky) - Add bb.utils.prune_suffix function + - Fix hg checkouts of specific revisions Changes in Bitbake 1.8.0: - Release 1.7.x as a stable series diff --git a/lib/bb/fetch/hg.py b/lib/bb/fetch/hg.py index 52c4200e3..f53be8b20 100644 --- a/lib/bb/fetch/hg.py +++ b/lib/bb/fetch/hg.py @@ -123,9 +123,6 @@ class Hg(Fetch): bb.msg.debug(1, bb.msg.domain.Fetcher, "Running %s" % updatecmd) runfetchcmd(updatecmd, d) - updatecmd = self._buildhgcommand(ud, d, "update") - bb.msg.debug(1, bb.msg.domain.Fetcher, "Running %s" % updatecmd) - runfetchcmd(updatecmd, d) else: fetchcmd = self._buildhgcommand(ud, d, "fetch") bb.msg.note(1, bb.msg.domain.Fetcher, "Fetch " + loc) @@ -134,6 +131,12 @@ class Hg(Fetch): os.chdir(ud.pkgdir) bb.msg.debug(1, bb.msg.domain.Fetcher, "Running %s" % fetchcmd) runfetchcmd(fetchcmd, d) + + # 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") + bb.msg.debug(1, bb.msg.domain.Fetcher, "Running %s" % updatecmd) + runfetchcmd(updatecmd, d) os.chdir(ud.pkgdir) try: |