Keyboard Shortcuts

File
u :up to issue
m :publish + mail comments
M :edit review message
j / k :jump to file after / before current file
J / K :jump to next file with a comment after / before current file
Side-by-side diff
i :toggle intra-line diffs
e :expand all comments
c :collapse all comments
s :toggle showing all comments
n / p :next / previous diff chunk or comment
N / P :next / previous comment
<Up> / <Down> :next / previous line
<Enter> :respond to / edit current comment
d :mark current comment as done
Issue
u :up to list of issues
m :publish + mail comments
j / k :jump to patch after / before current patch
o / <Enter> :open current patch in side-by-side view
i :open current patch in unified diff view
Issue List
j / k :jump to issue after / before current issue
o / <Enter> :open current issue
# : close issue
Comment/message editing
<Ctrl> + s or <Ctrl> + Enter :save comment
<Esc> :cancel edit
Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(30)
Issues Repositories Search
Open Issues | Closed Issues | All Issues | Sign in with your Google Account to create issues and add comments

Issue 4368045: Rietveld patch to fix upload.py -r N:M failure on new directories

Can't Edit
Can't Publish+Mail
Start Review
Created:
14 years, 9 months ago by arkadi
Modified:
14 years, 9 months ago
Reviewers:
Andi Albrecht, techtonik , GvR
CC:
codereview-discuss_googlegroups.com
Base URL:
http://rietveld.googlecode.com/svn/trunk/
Visibility:
Public.
http://code.google.com/p/rietveld/issues/detail?id=189

Patch Set 1 #

Total comments: 8

Patch Set 2 : Rietveld patch to fix upload.py -r N:M failure on new directories - try2 #

Created: 14 years, 9 months ago
Download [raw] [tar.bz2]
Unified diffs Side-by-side diffs Delta from patch set Stats (+59 lines, -44 lines) Patch
M upload.py View 1 18 chunks +59 lines, -44 lines 0 comments Download
Total messages: 4
|
arkadi
14 years, 9 months ago (2011年04月06日 12:58:32 UTC) #1
Sign in to reply to this message.
techtonik
http://codereview.appspot.com/4368045/diff/1/upload.py File upload.py (right): http://codereview.appspot.com/4368045/diff/1/upload.py#newcode686 upload.py:686: Tuple (output, return code) Apart from missing value, you ...
14 years, 9 months ago (2011年04月06日 22:44:59 UTC) #2
http://codereview.appspot.com/4368045/diff/1/upload.py
File upload.py (right):
http://codereview.appspot.com/4368045/diff/1/upload.py#newcode686
upload.py:686: Tuple (output, return code)
Apart from missing value, you can swap the order of arguments here to be (return
code, stdout, errout). The description above could reflect this too.
http://codereview.appspot.com/4368045/diff/1/upload.py#newcode939
upload.py:939: data = RunShell(cmd, True)
Debugging code?
http://codereview.appspot.com/4368045/diff/1/upload.py#newcode946
upload.py:946: logging.warn("No valid patches found in output from svn diff")
What's the purpose to continue then?
http://codereview.appspot.com/4368045/diff/1/upload.py#newcode1025
upload.py:1025: if re.match('^svn: Unable to find repository location for .+ in
revision \d+', err):
See the comment at http://code.google.com/p/rietveld/issues/detail?id=189#c8
I feel we should add this check. I don't know what the exact error would be, but
the following should work:
if re.match('^svn: WE\d+', errout):
 ErrorExit("Unknown error code from SVN, please report the message to Rietveld
tracker:\n%s" % errout)
Or it is possible to ask Subversion developers about the code.
Sign in to reply to this message.
arkadi
http://codereview.appspot.com/4368045/diff/1/upload.py File upload.py (right): http://codereview.appspot.com/4368045/diff/1/upload.py#newcode686 upload.py:686: Tuple (output, return code) ok, will do http://codereview.appspot.com/4368045/diff/1/upload.py#newcode939 upload.py:939: ...
14 years, 9 months ago (2011年04月07日 09:05:19 UTC) #3
http://codereview.appspot.com/4368045/diff/1/upload.py
File upload.py (right):
http://codereview.appspot.com/4368045/diff/1/upload.py#newcode686
upload.py:686: Tuple (output, return code)
ok, will do
http://codereview.appspot.com/4368045/diff/1/upload.py#newcode939
upload.py:939: data = RunShell(cmd, True)
used by integration script, change removed
http://codereview.appspot.com/4368045/diff/1/upload.py#newcode946
upload.py:946: logging.warn("No valid patches found in output from svn diff")
i'll remove this
sometimes the diff output is empty for the reason I do not remember currently.
as we use Rietveld in automated script I prefer it to skip the revision instead
of stalling the process
http://codereview.appspot.com/4368045/diff/1/upload.py#newcode1025
upload.py:1025: if re.match('^svn: Unable to find repository location for .+ in
revision \d+', err):
i'll update the code when new Subversion with error numbers is released
Sign in to reply to this message.
techtonik
LGTM, except changes for trailing whitespaces. The patch also doesn't apply to the trunk clearly. ...
14 years, 9 months ago (2011年04月08日 21:06:22 UTC) #4
LGTM, except changes for trailing whitespaces. The patch also doesn't apply to
the trunk clearly. As this is your first patch, I've fixed it for you.
Committed in r700 - you've got a lucky number. =) This issue can be closed now.
However, see comments in bug tracker.
Sign in to reply to this message.
|
Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b

AltStyle によって変換されたページ (->オリジナル) /