devtool: add sync command

The sync command is similar to the extract command, except it
fetches the sync'ed and patched branch to an existing git repository.

This enables users to keep track the upstream development while
maintaining their own local git repository at the same time.

(From OE-Core rev: e2fe4c99f1020a20b579832c4feafcd0e9bc2f75)

Signed-off-by: Tzu-Jung Lee <roylee17@currantlabs.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Tzu-Jung Lee
2015-11-09 02:30:32 -08:00
committed by Richard Purdie
parent 6bfa1dcc6e
commit 8ae27fa07b
2 changed files with 80 additions and 22 deletions

View File

@@ -312,7 +312,7 @@ def upgrade(args, config, basepath, workspace):
rf = None
try:
rev1 = standard._extract_source(args.srctree, False, 'devtool-orig', rd)
rev1 = standard._extract_source(args.srctree, False, 'devtool-orig', False, rd)
rev2, md5, sha256 = _extract_new_source(args.version, args.srctree, args.no_patch,
args.srcrev, args.branch, args.keep_temp,
tinfoil, rd)