]> git.sur5r.net Git - u-boot/commit
buildman: Try to guess the upstream commit
authorSimon Glass <sjg@chromium.org>
Tue, 2 Dec 2014 00:33:54 +0000 (17:33 -0700)
committerSimon Glass <sjg@chromium.org>
Thu, 15 Jan 2015 05:16:52 +0000 (21:16 -0800)
commit2a9e2c6a0962cb04a12d833cc5c1c0920fa3b4f5
treee924ed1920811a80eba92fe066cf6ae0a1ac8a03
parent1a915675104771e8afea399a62778c598289775f
buildman: Try to guess the upstream commit

Buildman normally obtains the upstream commit by asking git. Provided that
the branch was created with 'git checkout -b <branch> <some_upstream>' then
this normally works.

When there is no upstream, we can try to guess one, by looking up through
the commits until we find a branch. Add a function to try this and print
a warning if buildman ends up relying on it.

Also update the documentation to match.

Signed-off-by: Simon Glass <sjg@chromium.org>
Suggested-by: Wolfgang Denk <wd@denx.de>
tools/buildman/README
tools/buildman/control.py
tools/patman/gitutil.py