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

Unified Diff: static/upload.py

Issue 955: Allow upload with no base (Closed) SVN Base: http://rietveld.googlecode.com/svn/trunk/
Patch Set: Created 3 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: static/upload.py
===================================================================
--- static/upload.py (revision 103)
+++ static/upload.py (working copy)
@@ -361,6 +361,9 @@
parser.add_option("-i", "--issue", type="int", action="store",
metavar="ISSUE", default=None,
help="Issue number to which to add. Defaults to new issue.")
+parser.add_option("--lb", action="store_true",
GvR 2008/05/17 03:29:02 I recommend "-l", "--local_base"
+ dest="local_base", default=False,
+ help="base file will be uploaded")
def GetRpcServer(options):
@@ -495,7 +498,10 @@
logging.getLogger().setLevel(logging.DEBUG)
elif verbosity >= 2:
logging.getLogger().setLevel(logging.INFO)
- base = GuessBase()
+ if options.local_base:
+ base = "None"
GvR 2008/05/17 03:29:02 I'd set it to the empty string. That should be tur
+ else:
+ base = GuessBase()
CheckForUnknownFiles()
data = RunShell("svn diff", args)
count = 0
« codereview/models.py ('k') | no next file »

Powered by Google App Engine
This is Rietveld r305