|
Version Control for
Source-Navigator
Source-Navigator is a
source code analysis tool. With it, you can edit your source code,
display relationships between classes and functions and members, and
display call trees. You can also build your projects, either with your
own makefile, or by using Source-Navigator's build system to
automatically generate a makefile.
(http://sourcenav.sourceforge.net/index.html)
The information
below was provided by Aditya Jain.
To add version control support to Source-Navigator, follow these steps:
Install/copy source
navigator (latest version). 5.2b2 release is the min. version that runs
bug-free for RCS and is the latest stable version till date. Download it
from the net. Let's say the installation directory of Source-Navigator on
your computer is SNAV.
Install RCS. It asks
for 2 folders:
(i) RCS folder where the actual project data added to RCS will be stored.
(ii) The RCS installation folder where RCS will be installed.
Open the file <SNAV>\share\etc\sn_prop.cfg.
In this file you will have to make changes to the section that pertains
to RCS only.
The CFG file should call CS-RCS rather than GNU RCS. For example, if you
have installed RCS in Program Files, you should change it to:
-checkin "C:\Progra~1\ComponentSoftware\CS-RCS\System\csrcsw.exe ci -u" \
-checkin-exclusive "C:\Progra~1\ComponentSoftware\CS-RCS\System\csrcsw.exe
ci -l" \
-checkout "C:\Progra~1\ComponentSoftware\CS-RCS\System\csrcsw.exe co " \
-checkout-exclusive "C:\Progra~1\ComponentSoftware\CS-RCS\System\csrcsw.exe
co -l" \
-history "C:/Progra~1/ComponentSoftware/CS-RCS/System/csrcsw.exe history"
etc...
(Download
the file sn_prop.cfg to your <SNAV>\share\etc\sn_prop.cfg directory and
it will work without any modifications needed if you've installed CS-RCS
in C:\Program Files).
You can add projects
to RCS external to the source navigator (Ref: RCS tutorial). When you
open source navigator, and see the status of the files from 'Tools'->
'Revision Control'-> 'Revision control Editor', you will see a GUI window
opened in the status bar where you can view it's revisions, and compare
them, etc.
To "undo-checkout" a
file, there is a button "discard changes". But for this do work properly
you will first need to save the file (Don't check-in the saved file).
Then press "Discard Changes" button. It will warn you that all changes
will be reverted. Click ok. But the screen will still show the file with
the changes reflected. To get the "undo-checked-out" file, you will need
to again open the file from the symbols list that contains the listing of
the files in the project in Source navigator.
NOTE: (i)
Whenever you click a button like "check-out", you will see a pop-up
window asking for a revision. Just ignore it and click ok.
(ii) Always use the GUI that pops up in the status bar to compare
revisions. i.e., when you click "Tools->Revision Control ->Compare
Revisions", the same pop-up window will come as in (i) above. Cancel it.
Open the RCS GUI that is visible in the status bar and compare from
there. Otherwise the Source-Navigator window gives an error.
|