(self, path)
| 3113 | self.gitStream.write('\n') |
| 3114 | |
| 3115 | def encodeWithUTF8(self, path): |
| 3116 | try: |
| 3117 | path.decode('ascii') |
| 3118 | except: |
| 3119 | encoding = 'utf8' |
| 3120 | if gitConfig('git-p4.pathEncoding'): |
| 3121 | encoding = gitConfig('git-p4.pathEncoding') |
| 3122 | path = path.decode(encoding, 'replace').encode('utf8', 'replace') |
| 3123 | if self.verbose: |
| 3124 | print('Path with non-ASCII characters detected. Used %s to encode: %s ' % (encoding, path)) |
| 3125 | return path |
| 3126 | |
| 3127 | def streamOneP4File(self, file, contents): |
| 3128 | """Output one file from the P4 stream. |
nothing calls this directly
no test coverage detected