Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Unified Diff: drover.py

Issue 13730015: Misc improvements to drover (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Patch Set: Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: drover.py
diff --git a/drover.py b/drover.py
index 82f0ede76c7fcb8a6cc2c18081e97c5d8568e09e..4c7c6faf63d4e91f1eb8c0501fcc7cd147520ad6 100755
--- a/drover.py
+++ b/drover.py
@@ -515,6 +515,8 @@ def drover(options, args):
# Override the default properties if there is a drover.properties file.
global file_pattern_
if os.path.exists("drover.properties"):
+ print 'Using options from %s' % os.path.join(
+ os.getcwd(), 'drover.properties')
FILE_PATTERN = file_pattern_
f = open("drover.properties")
exec(f)
@@ -544,13 +546,13 @@ def drover(options, args):
prompt("Working copy contains uncommitted files. Continue?")):
return 1
- if options.revert and not options.no_alt_urls:
+ if options.revert and not options.no_alt_urls and not options.url:
for cur_url in [url] + REVERT_ALT_URLS:
try:
commit_date_str = getSVNInfo(
cur_url, options.revert).get('Last Changed Date', 'x').split()[0]
commit_date = datetime.datetime.strptime(commit_date_str, '%Y-%m-%d')
- if (datetime.datetime.now() - commit_date).days < 120:
+ if (datetime.datetime.now() - commit_date).days < 180:
if cur_url != url:
print 'Guessing svn repo: %s.' % cur_url,
print 'Use --no-alt-urls to disable heuristic.'
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698