mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-04-14 02:42:09 +02:00
Fix automate-git.py to pick up incremental changes in the remote CEF Git repository.
git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@1799 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
parent
a1fcfe8dc5
commit
5587ccbd2d
@ -606,7 +606,7 @@ msg("CEF Source Directory: %s" % (cef_dir))
|
|||||||
if options.checkout == '':
|
if options.checkout == '':
|
||||||
# Use the CEF head revision.
|
# Use the CEF head revision.
|
||||||
if cef_use_git:
|
if cef_use_git:
|
||||||
cef_checkout = 'master'
|
cef_checkout = 'origin/master'
|
||||||
else:
|
else:
|
||||||
cef_checkout = get_svn_info(cef_url)['revision']
|
cef_checkout = get_svn_info(cef_url)['revision']
|
||||||
else:
|
else:
|
||||||
@ -637,6 +637,11 @@ if not options.dryrun:
|
|||||||
if not options.noupdate and os.path.exists(cef_dir):
|
if not options.noupdate and os.path.exists(cef_dir):
|
||||||
if cef_use_git:
|
if cef_use_git:
|
||||||
cef_current_hash = get_git_hash(cef_dir, 'HEAD')
|
cef_current_hash = get_git_hash(cef_dir, 'HEAD')
|
||||||
|
|
||||||
|
if not cef_checkout_new:
|
||||||
|
# Fetch new sources.
|
||||||
|
run('%s fetch' % (git_exe), cef_dir, depot_tools_dir)
|
||||||
|
|
||||||
cef_desired_hash = get_git_hash(cef_dir, cef_checkout)
|
cef_desired_hash = get_git_hash(cef_dir, cef_checkout)
|
||||||
cef_checkout_changed = cef_checkout_new or force_change or \
|
cef_checkout_changed = cef_checkout_new or force_change or \
|
||||||
cef_current_hash != cef_desired_hash
|
cef_current_hash != cef_desired_hash
|
||||||
@ -649,10 +654,6 @@ if not options.noupdate and os.path.exists(cef_dir):
|
|||||||
(get_git_svn_revision(cef_dir, cef_desired_hash)))
|
(get_git_svn_revision(cef_dir, cef_desired_hash)))
|
||||||
|
|
||||||
if cef_checkout_changed:
|
if cef_checkout_changed:
|
||||||
if not cef_checkout_new:
|
|
||||||
# Fetch new sources.
|
|
||||||
run('%s fetch' % (git_exe), cef_dir, depot_tools_dir)
|
|
||||||
|
|
||||||
# Checkout the requested branch.
|
# Checkout the requested branch.
|
||||||
run('%s checkout %s%s' %
|
run('%s checkout %s%s' %
|
||||||
(git_exe, ('--force ' if options.forceclean else ''), cef_checkout), \
|
(git_exe, ('--force ' if options.forceclean else ''), cef_checkout), \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user