diff util.py @ 256:7932d098cb5f

Refactor commands to wrap their hg equivalent adding a --svn flag where sane.
author Augie Fackler <durin42@gmail.com>
date Fri, 10 Apr 2009 18:47:18 -0500
parents c3d5c4ae9c7c
children d978192f0d63
line wrap: on
line diff
--- a/util.py
+++ b/util.py
@@ -15,8 +15,10 @@ def version(ui):
     return node.hex(ver)[:12]
 
 
-def normalize_url(svn_url):
-    return svn_url.rstrip('/')
+def normalize_url(svnurl):
+    if svnurl.startswith('svn+http'):
+        svnurl = svnurl[4:]
+    return svnurl.rstrip('/')
 
 
 def wipe_all_files(hg_wc_path):