- Change Summary:
-
Previous soultion based on regular expression can't handle all cases. There was two cases exclusive: 1) /path/to/file@@/main/branch/VERSION 2) /path/to/file/@@/main/branch/VERSION I can't find one regular expression handle both forms so I decide to solve problem in another way.
ClearCase syntax highlight doesn't work
Review Request #1501 — Created April 2, 2010 and submitted
After upload diff path in ClearCase version contain part with something similar to @@/main/branch/VERSION. This part is glue after file extension which means it is impossible to pygments determine highlighting by file extension. This path is proposition to fix the problem.
-
-
This could should never know anything about the SCMTools using it. What I'd recommend is adding a new method to SCMTool for normalizing paths. Maybe call it "normalize_path_for_display". The method would take a filename and return a result. By default, it would just return the filename. ClearCaseTool could override this to return the result using unextend_path.
- Change Summary:
-
Now there is no "ClearCase" string. New method "normalize_path_for_display" implemented.