From c0813ab32e70aacc90adb18457b57aef8bc9f920 Mon Sep 17 00:00:00 2001
From: Ralf Jung <post@ralfj.de>
Date: Mon, 11 Feb 2013 13:41:28 +0100
Subject: [PATCH] Fix SVN.update

---
 vcs.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/vcs.py b/vcs.py
index 02a9192..3e04f46 100644
--- a/vcs.py
+++ b/vcs.py
@@ -110,10 +110,11 @@ class SVN:
 		self.folder = os.path.abspath(folder)
 		self.url = url
 
-	def update(self, forceVersion=False):
+	def update(self, mode = MODE_REBASE):
+		if mode == MODE_FETCH: raise Exception("Just fetching is not supported with SVN")
 		if os.path.exists(self.folder):
 			os.chdir(self.folder) # go into repository
-			if forceVersion: subprocess.check_call(['svn', 'revert', '-R', '.'])
+			if mode == MODE_RESET: subprocess.check_call(['svn', 'revert', '-R', '.'])
 			subprocess.check_call(['svn', 'switch', self.url]) # and update to the URL we got
 		else:
 			os.makedirs(self.folder) # if even the parent folder does not exist, svn fails
-- 
2.39.5