Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mrajjii opened this issue Jun 23, 2023 · 0 comments
Open

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

mrajjii opened this issue Jun 23, 2023 · 0 comments

Comments

@mrajjii
Copy link

mrajjii commented Jun 23, 2023

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'."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant