You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Windows 10
Python 2.7 (was recommended for Unicode compatibility in the documentation)
Issue: p4 reopen will fail if special characters are present in the file path (when fixing file types)
Reason: In fixFileTypes(self, filerevs, openedFiles) the 'fixed' local path is used for reopening: self.p4cmd('reopen', '-t', chRev.type, chRev.fixedLocalFile)
There is probably an inconsistency when to use the 'fixedLocalFile'. If invoking p4cmd one (maybe) only needs to restore the os separator but leave the special characters in their ASCII expanded form? I am currently using chRev.localFile for the reopen in fixFileTypes() and the transfer is proceeding.
Traceback (most recent call last):
File "P4TransferDebug.py", line 1823, in replicate
num_changes = self.replicate_changes()
File "P4TransferDebug.py", line 1677, in replicate_changes
targetChange = self.target.replicateChange(filerevs, change, self.source.p4.port)
File "P4TransferDebug.py", line 1027, in replicateChange
self.fixFileTypes(filerevs, openedFiles)
File "P4TransferDebug.py", line 1014, in fixFileTypes
self.p4cmd('reopen', '-t', chRev.type, chRev.fixedLocalFile)
File "P4TransferDebug.py", line 741, in p4cmd
output = self.p4.run(args, **kwargs)
File "C:\Python27\lib\site-packages\P4.py", line 611, in run
raise e
P4Exception: [P4#run] Errors during command execution( "p4 reopen -t ubinary E:\P4TransferRoot\depot\Projects\MobileGame\Unity5\Assets\Custom\Assets@1x\Textures\Scenery\BabyRoomBed.jpg" )
Windows 10
Python 2.7 (was recommended for Unicode compatibility in the documentation)
Issue: p4 reopen will fail if special characters are present in the file path (when fixing file types)
Reason: In fixFileTypes(self, filerevs, openedFiles) the 'fixed' local path is used for reopening: self.p4cmd('reopen', '-t', chRev.type, chRev.fixedLocalFile)
There is probably an inconsistency when to use the 'fixedLocalFile'. If invoking p4cmd one (maybe) only needs to restore the os separator but leave the special characters in their ASCII expanded form? I am currently using chRev.localFile for the reopen in fixFileTypes() and the transfer is proceeding.
log tail:
E:\P4TransferRoot\depot\Projects\MobileGame\Unity5\Assets\Custom\Assets@1x\Textures\Scenery\BabyRoomBed.jpg
2021-02-28 13:38:32,483:P4Transfer:DEBUG: targ('reopen', '-t', 'ubinary', 'E:\P4TransferRoot\depot\Projects\MobileGame\Unity5\Assets\Custom\Assets@1x\Textures\Scenery\BabyRoomBed.jpg')
2021-02-28 13:38:32,483:P4Transfer:ERROR: [P4#run] Errors during command execution( "p4 reopen -t ubinary E:\P4TransferRoot\depot\Projects\MobileGame\Unity5\Assets\Custom\Assets@1x\Textures\Scenery\BabyRoomBed.jpg" )
Traceback (most recent call last):
File "P4TransferDebug.py", line 1823, in replicate
num_changes = self.replicate_changes()
File "P4TransferDebug.py", line 1677, in replicate_changes
targetChange = self.target.replicateChange(filerevs, change, self.source.p4.port)
File "P4TransferDebug.py", line 1027, in replicateChange
self.fixFileTypes(filerevs, openedFiles)
File "P4TransferDebug.py", line 1014, in fixFileTypes
self.p4cmd('reopen', '-t', chRev.type, chRev.fixedLocalFile)
File "P4TransferDebug.py", line 741, in p4cmd
output = self.p4.run(args, **kwargs)
File "C:\Python27\lib\site-packages\P4.py", line 611, in run
raise e
P4Exception: [P4#run] Errors during command execution( "p4 reopen -t ubinary E:\P4TransferRoot\depot\Projects\MobileGame\Unity5\Assets\Custom\Assets@1x\Textures\Scenery\BabyRoomBed.jpg" )
The text was updated successfully, but these errors were encountered: