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.
However, the same file can also be accessed using a
view extended path, e.g.
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.