-
Notifications
You must be signed in to change notification settings - Fork 18
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
issue with case-sensitivity #53
Comments
It doesn't seem immediately apparent on why this file action type is being excluded. The only case where we have special behaviour in p4-fusion is when the file type itself is binary. We don't have any special conditions for branched files.
Perforce can add files to a CL without ever making any changes to it, and so sometimes the file would appear in
|
I think this has to do with case-sensitivity. I should mention that this is a Windows-only project. We found another merge CL with the same issue, and upon investigation the root cause is more apparent. In the problematic merge CLs, the missing files have different casing in the depot path:
It would seem that during a merge, the casing of the depot paths of some files can be different from the "canonical" path. Perforce then mark these files with "branch" as the action. While file paths are case-sensitive in the Perforce backend, this is invisible to the user on Windows. If you sync down On the other end, (Note: |
This probably needs more research into how some of the Perforce APIs that we call into support case insensitivity. I think we can add a flag for it in p4-fusion but needs to be throughly tested |
Looks like this might need an extra bit of MapApi.SetCaseSensitivity in the client mapping. |
If the file in question is being returned as a part of the
And this function is kind of stupid actually: Line 98 in 3ee4824
Doesn't seem to be case-sensitive and only checks if the depot path (provided as --path ) is present char-for-char in the file's path.
However, |
It might occur that removing the call to
But the GitAPI will still need to find a way to handle case-insensitivity |
We should be able to set |
Further Perforce documentation on its nuances of case-sensitivity: https://portal.perforce.com/s/article/3081 |
We were hunting down a missing file after the import:
The CL's action is "branch". Within the CL, all files have integrate as the action. Except one, which has the action "branch".
After the import, we found that the file that has "branch" as the action is missing from the git repo.
p4-fusion
is a godsend by the way. Thanks for open-sourcing this tool!version: 1.10
The text was updated successfully, but these errors were encountered: