Skip to content

Number sign in file name is interpreted as a version number. #18

@mrajjii

Description

@mrajjii

Attempting a stream transfer, it seems that if the file name has a # in the name it is interpreted as a version number.
Python 3.11.4 on windows.
Log Tail:
2023-06-21 11:35:43,506:P4Transfer:ERROR: [P4#run] Errors during command execution( "p4 sync -k e:\p4transfer\XXXX_SW_stream\master\PC\Test\Reference Documents\Master PDFs\XXXXSendProt BBBBB-#2 Protocol Sent to CCCC.pdf" )

[Error]: "Invalid revision number '2 Protocol Sent to CCCC.pdf'."

Traceback (most recent call last):
File "C:\Users\Administrator\Documents\p4transfer\P4Transfer.py", line 2632, in replicate
num_changes = self.replicate_changes()
^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Administrator\Documents\p4transfer\P4Transfer.py", line 2449, in replicate_changes
targetChange = self.target.replicateChange(fileRevs, specialMoveRevs, srcFileLogs, change, self.source.p4.port)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Administrator\Documents\p4transfer\P4Transfer.py", line 1556, in replicateChange
self.processChangeRevs(fileRevs, specialMoveRevs, srcFileLogs)
File "C:\Users\Administrator\Documents\p4transfer\P4Transfer.py", line 1494, in processChangeRevs
self.replicateBranch(f, dirty=False)
File "C:\Users\Administrator\Documents\p4transfer\P4Transfer.py", line 1872, in replicateBranch
self.p4cmd('sync', '-k', file.fixedLocalFile)
File "C:\Users\Administrator\Documents\p4transfer\P4Transfer.py", line 1024, in p4cmd
output = self.p4.run(args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Python311\Lib\site-packages\P4.py", line 617, in run
raise e
File "C:\Python311\Lib\site-packages\P4.py", line 611, in run
result = P4API.P4Adapter.run(self, *flatArgs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
P4.P4Exception: [P4#run] Errors during command execution( "p4 sync -k e:\p4transfer\XXXX_SW_stream\master\PC\Test\Reference Documents\Master PDFs\XXXXSendProt BBBBB-#2 Protocol Sent to CCCC.pdf" )

[Error]: "Invalid revision number '2 Protocol Sent to CCCC.pdf'."

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions