summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b1ce944)
raw | patch | inline | side by side (parent: b1ce944)
author | Han-Wen Nienhuys <hanwen@google.com> | |
Wed, 23 May 2007 21:49:35 +0000 (18:49 -0300) | ||
committer | Han-Wen Nienhuys <hanwen@google.com> | |
Tue, 5 Jun 2007 23:29:59 +0000 (20:29 -0300) |
Signed-off-by: Han-Wen Nienhuys <hanwen@google.com>
contrib/fast-import/git-p4 | patch | blob | history |
index 294c2ecfcaeb2feab7822d1f7a6d3a20416a4910..e955ad4f442d1e44cf96079f8589687ba487c26e 100755 (executable)
stat = filedata[j]
j += 1
text = ''
- while j < len(filedata) and filedata[j]['code'] == 'text':
+ while j < len(filedata) and filedata[j]['code'] in ('text',
+ 'binary'):
text += filedata[j]['data']
j += 1
if self.isWindows and file["type"].endswith("text"):
data = data.replace("\r\n", "\n")
- self.gitStream.write("M %s inline %s\n" % (mode, relPath))
+ self.gitStream.write("M %d inline %s\n" % (mode, relPath))
self.gitStream.write("data %s\n" % len(data))
self.gitStream.write(data)
self.gitStream.write("\n")