问题
Problem: Comparison
On Windows, a path can only be approximately 256 characters long, ClearCase will be affected by this limitation.
Known Solution known:
it is a bug of windows that file with very long path cannot be compared & not ClearCase's.
We can only avoid this problem by shortening our path (shorten or
label/branch/foldername/filename
).
Issue
I cannot shorten them because of several reasons.
So is there anyway that files in ClearCase which exceeds 256 chars can be compared?
回答1:
As mentioned in this technote:
It applies for Windows 95 but the problem still exists with NT/2000/XP/2003.
For Windows Vista/7, the limit is much higher (4096, if memory serves).:
... or not, according to the SF question "Window 256 characters path name limitation".
The usual workaround is to use the windows command subst in order to define an alias for part of the path and attach it to a drive letter.
For example, you can map a network drive to substitute the MVFS drive and view path.
By mappingM:\devuser1_servicing_processflow_integration
toZ:\
will cut the path by 42 characters in this example.
Is there any reason you cannot apply that workaround?
来源:https://stackoverflow.com/questions/5582230/comparison-problem-in-clearcase