Hi,
when trying to check out from within p4.el a file residing in a directory with an @ (the at sign) in its name, I get the following error message:
"Invalid changelist/client/label/date '@foobar/baz.txt'."
According to the discussion under http://stackoverflow.com/questions/2923874/in-p4-filename , p4 does not like @ in file or directory names. The work-around is to ascii-encode the @ sign by %40 before passing the file name to p4. Would it be possible to implement this workaround in p4.el ? Would be great!
Best
/me
That’s interesting. I didn’t even know about the ASCII encoding alternatives to the special characters. The issue I foresee is knowing when to make the substitution and when not. After all, @ introduces dates, labels, and changelist numbers, so finding those uses as distinct from any other may be a problem. Perhaps if I always replace @, #, *, and % with their ASCII encoded alternatives, Perforce will sort out which are part of a filename and which aren’t. However, in the manual, they say to keep those characters in the filename when adding it and escape them otherwise.
I don’t have experience with such filenames, so I’m uncertain what to change so as to avoid breaking things. If you’d like to experiment with things and tell me what works and what breaks with those substitutions, we could find a good solution.
BTW, If you’re interested, I’d be happy to send you my current development version of p4.el. It is dramatically different than the one currently on SourceForge. (I’ve never gotten around to setting up things to post the dev version to SourceForce; I need to do that.) My dev version has many new features, including a much improved menu and Customize support for options.