Using Version Control out of the Astrobe IDE
Posted: Tue Mar 30, 2021 6:59 pm
We are using SubVersion and version management system on Delphi and would like to use this on the embedded source code as well. The possibility to add menu items in Astrobe v7.0+ gives a very nice way to do this.
1.) Integrating SubVersion
Command 3 gives a rundown of the repository in the info panel of the IDE
Command 4 commits the changed local files to repository. (->A similar command can be used to update the local files from the repository, but the files are then not reloaded in the IDE. This might lead to conflicts, so Updates should be done before starting the IDE)
1.) Integrating SubVersion
- We are using TortoiseSVN for Windows. This needs to be installed first.
- Create a repository with your Oberon MOD files.
- Create a local WorkDir from this repository
Code: Select all
[Command0]
MenuItem=&Open Containing Folder ...
Path=C:\Windows\explorer.exe
Parameters=%FileDir%
WorkingFolder=%FileDir%
ConsoleApp=FALSE
Prompt=FALSE
[Command1]
MenuItem=Open E&xamples Folder ...
Path=C:\Windows\explorer.exe
Parameters=%AstrobeM3%\Examples
WorkingFolder=%AstrobeM3%\Examples
ConsoleApp=FALSE
Prompt=FALSE
[Command2]
MenuItem=&View Map File
Path=c:\Windows\System32\cmd.exe
Parameters=/c type %FileDir%\%FileRoot%.map
WorkingFolder=%FileDir%
ConsoleApp=TRUE
Prompt=FALSE
[Command3]
MenuItem=SVN &Status
Path=C:\Program Files\TortoiseSVN\bin\svn.exe
Parameters=status -v %FileDir%
WorkingFolder=%FileDir%
ConsoleApp=TRUE
Prompt=FALSE
[Command4]
MenuItem=SVN &Commit
Path=C:\Program Files\TortoiseSVN\bin\svn.exe
Parameters=commit -m "Committed all Changes" %FileDir%
WorkingFolder=%FileDir%
ConsoleApp=TRUE
Prompt=FALSE
[Command5]
Command 4 commits the changed local files to repository. (->A similar command can be used to update the local files from the repository, but the files are then not reloaded in the IDE. This might lead to conflicts, so Updates should be done before starting the IDE)