AutoIt Script Editor CVSWrapper

The CVSWrapper will assist you to keep track of the different versions of your scripts as you develop your scripts.
It supports both SVN and CVS repositories and gives you an option which default type repository to use.

  • Installation instructions.
  • CvsWrapper functions
  • More details on SVN/TortoiseSVN functions can be found in the helpfile located in the the program directories.
  • More details on TortoiseCVS functions can be found in the helpfile located in the TortoiseCVS directory.

Enjoy,

Functions.

F12 will update the CVS repository.

These steps are performed:

  1. The First time this script runs it will show a Menu where you choose the versioning system you want to use for the default repository. This default repository is used when the source file directory isn’t using a versioning system yet. I prefer using SVN because its faster and has more capabilities but both SVN and CVS will work and you only need one to be able to work with this program. You can also change the Directory in which to create the svnRepository -or- cvsRepository and the svnAutoIt3Scripts -or- cvsAutoIt3Scripts directories. After you Click the “Use SVN” or “Use CVS”, the  CVS commands will be performed to initialize the repository.
    SVN
    Initial SVN AutoIt Script Editor CVSWrapper 

    CSV
    Initial%20Setup AutoIt Script Editor CVSWrapper

  2. Check if a SVN/CVS is already defined for the current script:
    • In case a SVN/CVS is already defined it will update the script in the current SVN/CVS repository.
    • Else it will copy the current version of your script into a subdirectory of CVSWrapper called: svn/cvsAutoIt3Scripts
      and Run the CVS program to add the updated version to the repository stored in directory: svn/cvsRepository

    cvsComments AutoIt Script Editor CVSWrapper

    First Time Script add AutoIt Script Editor CVSWrapper

Alt+F12 show the difference between the current edited version and the last save version.

  1. In case a CVS is already defined it will retrieve the last saved version from the SVN/CVS repository into a temp file and start WinMerge.
  2. Else it will start WinMerge comparing it with the version in the subdirectory of CVSWrapper called: cvsAutoIt3Scripts.
Compare active CVS AutoIt Script Editor CVSWrapperJust keep clicking WinMerge Next AutoIt Script Editor CVSWrapper to go to the next difference between the CVS and the working copy of the script.

Ctrl+F12 will open the Windows Explorer to allow you to perform CVS tasks.

Tasks like: Remove/History/Special Update/Annotate.
This can be done by doing a Right-Mouse-click on the Script, Select CVS and then selecting the desired option.

CVSMenu AutoIt Script Editor CVSWrappercvsHistory AutoIt Script Editor CVSWrapper

Installation:

If you want to use SVN then:

  1. Download and install SVN Binaries from:  http://subversion.tigris.org/servlets/ProjectDocumentList?folderID=91
  2. Optional download and install TortoiseSVN from:  http://sourceforge.net/projects/tortoisesvn/
  3. Download and install WinMerge to show differences between script versions from : http://winmerge.org/

If you want to use CVS then

  1. Download and install TortoiseCVS from:  http://sourceforge.net/projects/tortoisecvs/
  2. Download and install WinMerge to show differences between script versions from : http://winmerge.org/
  • Add these lines to SciTEUser.properties:
    # 42 Update Source in CVS
    command.42.*.au3=$(SciteDefaultHome)\cvsWrapper\CvsWrapper.exe “$(FilePath)”
    command.name.42.*.au3=CVS Update Source
    command.save.before.42.*.au3=1
    command.shortcut.42.*.au3=F12
    # 43 Compare current Source with CVS version
    command.43.*.au3=$(SciteDefaultHome)\cvsWrapper\CvsWrapper.exe “$(FilePath)” /ShowDiff
    command.name.43.*.au3=CVS Diff Source
    command.save.before.43.*.au3=1
    command.shortcut.43.*.au3=Alt+F12
    # 44 Open ScriptSource Directory
    command.44.*.au3=$(SciteDefaultHome)\cvsWrapper\CvsWrapper.exe “$(FilePath)” /ShowRepository
    command.name.44.*.au3=CVS Open Source Directory
    command.save.before.44.*.au3=1
    command.shortcut.44.*.au3=Ctrl+F12
  • You are ready to use CVS !