initial_rev = None
commits = []
check_commits = False
+ torev = 'HEAD'
if not args.no_extract:
ret = _extract_source(srctree, args.keep_temp, args.branch, False, config, basepath, workspace, args.fixed_setup, rd, tinfoil, no_overrides=args.no_overrides)
initial_rev = ret.initial_rev
logger.info('Source tree extracted to %s' % srctree)
- # Get list of commits since this revision
- (stdout, _) = bb.process.run('git rev-list --reverse %s..HEAD' % initial_rev, cwd=srctree)
- commits = stdout.split()
check_commits = True
else:
if os.path.exists(os.path.join(srctree, '.git')):
stdout = ''
if stdout:
check_commits = True
+ torev = 'devtool-patched'
for line in stdout.splitlines():
if line.startswith('*'):
(stdout, _) = bb.process.run('git rev-parse devtool-base', cwd=srctree)
(stdout, _) = bb.process.run('git rev-parse HEAD', cwd=srctree)
initial_rev = stdout.rstrip()
+ if initial_rev:
+ # Get list of commits since this revision
+ (stdout, _) = bb.process.run('git rev-list --reverse %s..%s' % (initial_rev, torev), cwd=srctree)
+ commits = stdout.split()
+
branch_patches = {}
if check_commits:
# Check if there are override branches