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

Unified Diff: gclient_scm.py

Issue 3028053: Add code to automatically svn cleanup during svn update. (Closed)
Patch Set: Created 10 years, 4 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 | tests/gclient_scm_test.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gclient_scm.py
diff --git a/gclient_scm.py b/gclient_scm.py
index a76d2d0c2c882887a1ae32680b4969532a4bb2fb..925789db6717a454fa757f93bcc484b58665a576 100644
--- a/gclient_scm.py
+++ b/gclient_scm.py
@@ -752,6 +752,12 @@ class SVNWrapper(SCMWrapper):
"and try again." %
checkout_path)
+ # Look for locked directories.
+ dir_info = scm.SVN.CaptureStatus(os.path.join(checkout_path, '.'))
+ if [True for d in dir_info if d[0][2] == 'L' and d[1] == checkout_path]:
+ # The current directory is locked, clean it up.
+ scm.SVN.Run(['cleanup'], checkout_path)
+
if options.manually_grab_svn_rev:
# Retrieve the current HEAD version because svn is slow at null updates.
if not revision:
« no previous file with comments | « no previous file | tests/gclient_scm_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698