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

Unified Diff: tools/svn.py

Issue 193023002: rebaseline_server: add actual_repo and actual_revision command line options (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 9 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
« gm/rebaseline_server/server.py ('K') | « gm/rebaseline_server/server.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/svn.py
diff --git a/tools/svn.py b/tools/svn.py
index 0c1ec4fd2b0e2040f5db0faaff86cc575c05ee9c..7927258a07a29219384045cb468d1e20b475158f 100644
--- a/tools/svn.py
+++ b/tools/svn.py
@@ -95,14 +95,15 @@ class Svn:
"""
return self._RunCommand([SVN, 'checkout', url, path])
- def Update(self, path):
+ def Update(self, path, revision='HEAD'):
"""Update the working copy.
Returns stdout as a single string.
@param path path (within self._directory) within which to run
- "svn update"
+ "svn update"
+ @param revision revision to update to
"""
- return self._RunCommand([SVN, 'update', path])
+ return self._RunCommand([SVN, 'update', path, '--revision', revision])
borenet 2014/03/10 18:01:12 Does "--revision HEAD" do the right thing? Or sho
epoger 2014/03/10 18:08:54 Yup, it works fine. From "svn help update": -r
def ListSubdirs(self, url):
"""Returns a list of all subdirectories (not files) within a given SVN
« gm/rebaseline_server/server.py ('K') | « gm/rebaseline_server/server.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698