#106 ClearCase support: strip off view extended path if possible

open
nobody
None
5
2004-04-17
2004-04-17
Arne F�rlie
No

This patch provides a fix for a problem when using
NEdit together with ClearCase, particularly the
graphical version tree browser.

In a ClearCase view a file/version in the current view
can be accessed through a normal path, e.g.
/some/path/file.c
However, the same file can also be accessed using a
view extended path, e.g.
/view/view_tag/some/file/path/file.c.

If /view/view_tag doesn't match the shell's
CLEARCASE_ROOT then we have opened two different
versions of the same file.
However, when /view/view_tag is the same as
CLEARCASE_ROOT we have the same inode open in two
windows, which is rather confusing.

To avoid this, we test to see if the start of the path
matches CLEARCASE_ROOT. If it does, we strip off the
viewRoot so that NEdit knows it using the normal path.

Discussion

  • Arne F�rlie
    Arne F�rlie
    2004-04-17

     
    Attachments