 Chromium Code Reviews
 Chromium Code Reviews Issue 2545001:
  Fix gcl upload with moved files without modification on Windows.  (Closed) 
  Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools/
    
  
    Issue 2545001:
  Fix gcl upload with moved files without modification on Windows.  (Closed) 
  Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools/| Index: scm.py | 
| =================================================================== | 
| --- scm.py (revision 48792) | 
| +++ scm.py (working copy) | 
| @@ -45,6 +45,7 @@ | 
| def GenFakeDiff(filename): | 
| """Generates a fake diff from a file.""" | 
| file_content = gclient_utils.FileRead(filename, 'rb').splitlines(True) | 
| + filename = filename.replace(os.sep, '/') | 
| 
M-A Ruel
2010/06/03 00:02:17
I don't think this one is necessary but while at i
 | 
| nb_lines = len(file_content) | 
| # We need to use / since patch on unix will fail otherwise. | 
| data = cStringIO.StringIO() | 
| @@ -730,7 +731,7 @@ | 
| data = SVN.Capture(command, None) | 
| if not data: | 
| # We put in an empty Index entry so upload.py knows about them. | 
| - data = "Index: %s\n" % filename | 
| + data = "Index: %s\n" % filename.replace(os.sep, '/') | 
| # Otherwise silently ignore directories. | 
| else: | 
| if info.get("Node Kind") != "directory": |