Code Warrior with SubVersion

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Code Warrior with SubVersion

6,597 Views
Void
Contributor I
Hello.

I'm using Code Warrior for a Small project, but I have Subversion as a version control tool.

Does anybody know if Code Warrior can be used with Subversion? I could find CVS support and I believe Subversion is similar, but I could not find any way to set it up.

Regards.
Labels (1)
0 Kudos
Reply
8 Replies

901 Views
Wayne
Contributor II
We are using Subversion with our Code Warrior projects. Using subversion as just a way to work with code files and has nothing to do with the CodeWarrior IDE. Just check in all the files you need to archive. One suggestion is to Export the IDE project file into an XML file and archive that file. The IDE project file is binary and changes every time you open the project, so I don't recommend archiving that file. Archiving the XML file allows one to track text based changes to the project. However, you need to export the project to XML everytime you make significant changes to the project.
0 Kudos
Reply

901 Views
Bruce_andrew
Contributor I
I asked about this a while ago, and was told "NO!".

SVN is becoming very popular, so I'm sure this won't be the last time that CW users ask for it. :smileyhappy:

For me, TortoiseSVN is good enough. But good integration with the CW IDE would be nice.

FYI: previous thread on SVN

Message Edited by Bruce_ on 2007-02-1812:18 PM

0 Kudos
Reply

901 Views
CompilerGuru
NXP Employee
NXP Employee
I don't think there is a plugin to have the GUI inside of the CodeWarrior IDE. But there is nothing which stops you from using subversion with an external GUI, I'm using TortoiseSVN which adds the user interface to the Windows explorer.
As tip when using CW with either subversion or cvs, keep the mcp's readonly. This way CW always asks before changing them, otherwise CW modifies them when just opening the mcp.

Daniel
0 Kudos
Reply

901 Views
odnt
Contributor I

tHello,

 

I found this old thread through a Google search of "Subversion Code Warrior".

 

Has it YET occured to anyone , 3 years later, to STOP SCREWING WITH THE .mcp file? 

 

What even changes there for just opening the project, anyway? There is no good way to insure multiple users (or even one, for that matter), don't either save it when they shouldn't or not save it when they should. This circumvents completely the purpose of using source control software in the first place.

 

Any change there could make creating an exact - match target impossible.

 

Is it at least true that the only changes that SHOULD be there are through the project "Settings" interface? So the rule can at least be, "IF and ONLY IF you change something through the "Settings" dialog, then save the .mcp file?

 

I have had "read-only" set before, and when opening the project been warned "The settings file for project "...mcp" was locked, so some user settings will not be saved". This is a real nuisance - but does it solve the problem? Just "click - through" each time. Will anything important be lost this way, without knowing it? 

 

If nothing significant is stuck into the .mcp file casually, wouldn't a simple bug fix patch to remove the willy-nilly stuff solve a large hastle for everyone?

 

Thanks.

 

0 Kudos
Reply

901 Views
CrasyCat
Specialist III

Hello

 

CodeWarrior also stores some internal data in the .mcp file.

If you are planning to use a version control software I would highly recommend you to export your .mcp file to a .xml file and checking the .xml file in your version control system.

 

Any programmer who checks the project out should then import the .xml file to create a .mcp file. 

 

CrasyCat

0 Kudos
Reply

901 Views
MrBean
Contributor I

CrasyCat wrote:

 

.... I would highly recommend you to export your .mcp file to a .xml file ....


Could you please explain how to do that ?

0 Kudos
Reply

901 Views
CrasyCat
Specialist III

Hello

 

  - Start CodeWarrior

  - Open your .mcp file in the IDE

  - Select "File" -> "Export Project" and follow the instructions on the screen.

 

CrasyCat

0 Kudos
Reply

901 Views
MrBean
Contributor I

Ah, thanks !  :smileyhappy:

 

For some strange reason i have always overlooked that :-/

0 Kudos
Reply