Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(72)

Issue 538009: Fix case sensitivity issues and svn move patches for --sub_rep on Windows.... (Closed)

Created:
10 years, 11 months ago by M-A Ruel
Modified:
9 years, 7 months ago
Reviewers:
bradnelson, bradn
CC:
chromium-reviews_googlegroups.com, M-A Ruel
Visibility:
Public.

Description

Fix case sensitivity issues and svn move patches for --sub_rep on Windows. TEST=none BUG=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=35839

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, -8 lines) Patch
M scm.py View 1 5 chunks +25 lines, -4 lines 3 comments Download
M tests/scm_unittest.py View 2 2 chunks +5 lines, -3 lines 0 comments Download
M trychange.py View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 4 (0 generated)
M-A Ruel
10 years, 11 months ago (2010-01-08 22:35:25 UTC) #1
bradn
LGTM
10 years, 11 months ago (2010-01-08 22:37:46 UTC) #2
M-A Ruel
10 years, 11 months ago (2010-01-08 22:59:05 UTC) #3
bradn
10 years, 11 months ago (2010-01-08 23:09:23 UTC) #4
http://codereview.chromium.org/538009/diff/5001/7
File scm.py (right):

http://codereview.chromium.org/538009/diff/5001/7#newcode28
scm.py:28: paths = path.split('\\')
\\ -> os.pathsep
eh, whatever

http://codereview.chromium.org/538009/diff/5001/7#newcode38
scm.py:38: paths[i] = glob.glob(subpath + '*')[0][prev+1:len(subpath)]
Can you drop the '*' come to think of it, glob should still find it? Or does it
then not recase it?
I guess its ok since if anything else matches, it comes latest in sort order.

http://codereview.chromium.org/538009/diff/5001/7#newcode38
scm.py:38: paths[i] = glob.glob(subpath + '*')[0][prev+1:len(subpath)]
actually what happens if its the shortname? oh yuck sigh...
actually how about this:
paths[i] = glob.glob(subpath +'*')[0].split('\\')[-1]

Powered by Google App Engine
This is Rietveld 408576698