diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-04-20 02:13:23 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-05-06 18:13:55 +0100 |
commit | 12112102dd2808534505d4bfbb171904794428c2 (patch) | |
tree | 0f14fa2484f1e17a98df5e6bde2341d5e3e53898 /lib/bb/fetch2/hg.py | |
parent | eb799b44adab4701825f3dda5d982256781d7f78 (diff) | |
download | bitbake-12112102dd2808534505d4bfbb171904794428c2.tar.gz |
bitbake/fetch2: Fix the problems introduced by the git fetcher AUTOREV fix
The ordering constrains on the urldata_init functions are not straight
forward. To avoid further problems, create a helper function to setup
the source revisions which the init functions can all at the appropriate
point.
(From Poky rev: c4371138f7444ecaa1fdd2b1ee4949fbc819f886)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/fetch2/hg.py')
-rw-r--r-- | lib/bb/fetch2/hg.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/bb/fetch2/hg.py b/lib/bb/fetch2/hg.py index f2719d4f9..793831ae0 100644 --- a/lib/bb/fetch2/hg.py +++ b/lib/bb/fetch2/hg.py @@ -57,6 +57,8 @@ class Hg(FetchMethod): ud.pkgdir = os.path.join(data.expand('${HGDIR}', d), ud.host, relpath) ud.moddir = os.path.join(ud.pkgdir, ud.module) + ud.setup_revisons(d) + if 'rev' in ud.parm: ud.revision = ud.parm['rev'] elif not ud.revision: |