Page 1 of 1

How to change from git to svn in CodeLite IDE?

Posted: Fri Jun 10, 2011 4:59 am
by jiapei100
Hi, Eran:

Sorry to drop such a silly question, but I do need it.
Current default version control of CodeLite IDE v2.10.0.4778 is GIT.
I'm wondering how I can change the version control too to subversion so that I can easily check in/out using SVN, better also from within CodeLite IDE itself.

From http://codelite.org/LiteEditor/Subversion , it looks GIT and SVN are both defaultly supported right now.
However, whenever I right-click a file name from within CodeLite Workspace, only GIT tools can be found
Git: Add file
Git: Reset file
Git: Show file diff

By the way, how can I view the change I just made between the checked out version and the modified version using subversion from within CodeLite IDE?

Thank you very much.

Best Regards
Pei

Re: How to change from git to svn in CodeLite IDE?

Posted: Fri Jun 10, 2011 10:23 am
by eranif
jiapei100 wrote:Current default version control of CodeLite IDE v2.10.0.4778 is GIT.
Its not. The fact that you have the menu options only means that both plugins are enabled.

SVN uses a different approach (cleaner one IMO): there is a tab named 'Svn' next to the 'Workspace', 'Tabgroups' etc - whenever you open a workspace, SVN will choose the path to the workspace file as the 'base' point and you will be able to do all Svn operations from that view.
For convinient, you can right click on the tab 'Svn' and select 'Detach' and then place it under / next to the workspace one

Git: is using a differfent approach - it hooks itself to the 'Workspace' tree.
jiapei100 wrote:By the way, how can I view the change I just made between the checked out version and the modified version using subversion from within CodeLite IDE?
To view the diff of your changes, simple double click the modified file in the 'Svn' view - this will perform a diff between the current working version and from the one in the repository.

If you want a diff to a different revision, right click on the file and select 'Create diff...' this will popup a dialog where you can enter a specific revision for the diff.
svn.png
Eran

Re: How to change from git to svn in CodeLite IDE?

Posted: Fri Jun 10, 2011 8:12 pm
by jiapei100
Thanks Eran... Thanks...
I probably have already changed the default Diff to External Diff (I specified Meld ), which seems to make myself unseen any jumped-out dialog to show the differences yesterday . My bad...

Two more questions:
1) Is CodeLite able to produce a "Makefile" automatically ?
2) Maybe this questions is purely about SVN. I've got to check-outs from 2 computers. And 1 made a code change and checked in a revision. How to let the 2nd computer automatically know the code has been changed from outside from within CodeLite?


Cheers
Pei

Re: How to change from git to svn in CodeLite IDE?

Posted: Fri Jun 10, 2011 8:19 pm
by eranif
jiapei100 wrote:1) Is CodeLite able to produce a "Makefile" automatically ?
codelite build system is based on makefile, it always generates a makefile based on the project/workspace
jiapei100 wrote:2) Maybe this questions is purely about SVN. I've got to check-outs from 2 computers. And 1 made a code change and checked in a revision. How to let the 2nd computer automatically know the code has been changed from outside from within CodeLite?
right click on the svn folder inside codelite (in the svn view) and select 'update' - this will "pull" all the changes from the main repository and once codelite will "see" the change, it will re-tag the file to reflect the changes

Eran

Re: How to change from git to svn in CodeLite IDE?

Posted: Fri Jun 10, 2011 9:16 pm
by jiapei100
One more suggestion, do not show the password in text, please encrypt the password by showing stars ....


Rgds
Pei