Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(218)

Unified Diff: static/upload.py

Issue 974: accept patches from mercurial SVN Base: http://rietveld.googlecode.com/svn/trunk
Patch Set: Created 4 months, 3 weeks ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side by-side-diff with in-line comments
Download patch
« index.yaml ('k') | no next file » | Expand Comments ('e') | Collapse Comments ('c') | Hide Comments ('s')
Index: static/upload.py
===================================================================
--- static/upload.py (revision 101)
+++ static/upload.py (working copy)
@@ -480,7 +480,9 @@
base = "http" + base[5:]
logging.info("Guessed Google Code base = %s", base)
else:
- ErrorExit("Unrecognized svn project root: %s" % url)
+ base = url + "/"
+ #print netloc
+ #ErrorExit("Unrecognized svn project root: %s" % url)
return base
ErrorExit("Can't find URL in output from svn info")
@@ -495,12 +497,14 @@
logging.getLogger().setLevel(logging.DEBUG)
elif verbosity >= 2:
logging.getLogger().setLevel(logging.INFO)
- base = GuessBase()
- CheckForUnknownFiles()
- data = RunShell("svn diff", args)
+ #base = GuessBase()
+ base = "http://svn.scipy.org/svn/numpy/trunk"
+ #CheckForUnknownFiles()
+ data = RunShell("hg diff", args)
+ #print data
count = 0
for line in data.splitlines():
- if line.startswith("Index:"):
+ if line.startswith("diff"):
count += 1
logging.info(line)
if not count:
« index.yaml ('k') | no next file »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld r338