Jump to content

Recommended Posts

  • Developers
Posted (edited)

I've seen many questions around "how to do source versioning" and have tried to make it a little bit easier by incorporating SVN functionality into AutoIt3Wrapper.

Would appreciate getting some feedback on:

  • Is this working for you?
  • Are there issues with this?
  • Could it be improved?
I have uploaded a separate beta version of Autoit3Wrapper to the Beta dir which also contains the helpfile page on how to install TortoiseSVN and Winmerge and use versioning.

Download and install :

  • AutoIt3Wrapper.* to %programfiles%Autoit3SciTEAutoIt3Wrapper
  • *.properties to %programfiles%Autoit3SciTEproperties
cvsWrapper will be discontinued and isn't supported in this version any more. The internal functionality is exactly the same but now only supporting SVN.

Updates made:

3/24/2013
- Fixed AutoIt3Wrapper issue when UAC is enabled and AutoIt3Wrapper not running in Admin mode, which made it fail to update AutoIt3Wrapper.ini with the proper settings.
- Update the Documentation with instructions to select the installation of the Command Line tools for the TortoiseSVN installer and several suggestions from Melba23.

- Updated SciTEConfig to allow for the generic Tools command selection. This is stored in the regular beta directory.

Jos

Edited by Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Posted

I will be testing this at the weekend as I use TortoiseSVN.

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

Posted

I will have a look at it too and report the results!

My UDFs and Tutorials:

  Reveal hidden contents

 

Posted (edited)

svn.exe doesn't exist in my TortoiseSVN. From doing some research it appears TortoiseProc.exe is what you're looking for.

Good reference: http://stackoverflow.com/questions/2967176/where-is-svn-exe-in-my-machine

Edited by guinness

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

  • Developers
Posted (edited)

  On 3/23/2013 at 12:25 PM, 'guinness said:

svn.exe doesn't exist in my TortoiseSVN. From doing some research it appears TortoiseProc.exe is what you're looking for.

I am running the x64 version which does include the svn.exe in the BIN directory. Just looked at my x86 WinXP VM pc and it indeed seems the x86 version of tortoisesvn is missing the SVN.exe.

I am aware of the TortoiseProc.exe but had some issue with it in the past so also based the cvswrapper's SVN support on a separate SVN.exe setup.

Let me have a look to see what the best approach is for this omission in the x86 installer.

Jos

Edited by Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Posted

Nice!

Being a Git man myself, I wrote an AutoIt script which:

  • Reads the Version number from the compiler settings, creates a new tag.
  • Adds all of the changes using git add .
  • Then prompts me for the changes I made and commits them using git commit -m $sCommitMsg
  • Pushes the changes to my private GitHub repositories so that I don't lose them.
Works a treat, I'll have to find it off of my backup if anybody is interested.
  • Developers
Posted (edited)

  On 3/23/2013 at 12:39 PM, 'Jos said:

Let me have a look to see what the best approach is for this omission in the x86 installer.

As it looks now, its best to simply download SilkSvn and use that svn.exe for the x86 OSes, as the TortoiseProc.exe doesn't really allow for batch processing.

Still need to do some testing to ensure all regex checks are correct in the AutoIt3Wrapper.ini.

Jos

Edited by Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Posted

  On 3/23/2013 at 1:11 PM, 'James said:

Works a treat, I'll have to find it off of my backup if anybody is interested.

Sounds great I'm torn between the 2...

Spoilt for choice is the main problem.... :)

  • Developers
Posted

  On 3/23/2013 at 1:25 PM, 'Jos said:

As it looks now, its best to simply download SilkSvn and use that svn.exe for the x86 OSes, as the TortoiseProc.exe doesn't really allow for batch processing.

Still need to do some testing to ensure all regex checks are correct in the AutoIt3Wrapper.ini.

Jos

This line in AutoIt3Wrapper.ini needs to be updated to support silksvn:

CommandAddSource_ok_txt=A.*?%sourcefileonly%

I have uploaded a updated version of Autoit3Wrapper to have it initialise like this, but you need to manually update in case you already ran it.

Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

  • Developers
Posted

  On 3/23/2013 at 6:35 PM, 'James said:

Plus, I can have Git running without a Git server being in place.

The whole purpose of this setup is to use a local Disk to store the SVN repository for your sourcefiles.

Let's keep this thread to it's purpose which is using the changed AutoIt3Wrapper for versioning. :)

Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Posted

  On 3/23/2013 at 11:07 AM, 'Jos said:

I have uploaded a separate beta version of Autoit3Wrapper to the Beta dir which also contains the helpfile page on how to install TortoiseSVN and Winmerge and use versioning.

I followed the help file closely..VERY helpfull!!! (few little things I'd suggest but only minor)

Everything went fine until I hit F12 & ALT-F12 and nothing happened. :(

What was supposed to happen? What was supposed to run?

I have the full version of SCITE and I'm running on Win7 64Bit.

As far as I know I've followed everything else to the letter and I do have version info in the repository and it's working from TortoiseSVN...

  • Developers
Posted

  On 3/24/2013 at 11:33 AM, 'storme said:

Everything went fine until I hit F12 & ALT-F12 and nothing happened. :(

What was supposed to happen? What was supposed to run?

I have the full version of SCITE and I'm running on Win7 64Bit.

As far as I know I've followed everything else to the letter and I do have version info in the repository and it's working from TortoiseSVN...

Did you also copy the au3.properties version from the Beta?

It has these definitions for these shortcuts:

# 15 Update Source in Version repository
command.15.*=$(SciteDefaultHome)\AutoIt3Wrapper\AutoIt3Wrapper.exe /in "$(FilePath)" /Versioning_Commit
command.name.15.*=Version Update Source
command.save.before.15.*=1
command.shortcut.15.*=F12
# 16 Compare current Source with the source in the Version repository
command.16.*=$(SciteDefaultHome)\AutoIt3Wrapper\AutoIt3Wrapper.exe /in "$(FilePath)" /Versioning_ShowDiff
command.name.16.*=Version Diff Source
command.save.before.16.*=1
command.shortcut.16.*=Alt+F12

Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

  • Moderators
Posted (edited)

Jos,

Everything working fine for me. Thanks for the help getting it all to work nicely on my machine and for the work you put in producing it all in the first place. :)

M23

Edited by Melba23
Typo

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

  Reveal hidden contents

 

  • Developers
Posted

Updated SciTEConfig to allow for Selecting/Deselecting tools that are for all files ".*", not just AUtoIt3 ".$(au3)", like this versioning option.

Update available in the Beta directory.

Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

  • Moderators
Posted

Jos,

Works fine. :thumbsup:

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

  Reveal hidden contents

 

Posted (edited)

Jos,

when I press F12 for the first time I get the message box "Versioning information is not found yet." When I then click on "Yes" I'm not prompted for the location of SVN.exe but get the following messages:

>C:\Program Files (x86)\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.exe /in "C:\SVNTest\Trunc\AD\Test.au3" /Versioning_Commit
+>14:03:19 Starting AutoIt3Wrapper v.2.1.2.7 Environment(Language:0407 Keyboard:00000407 OS:WIN_7/Service Pack 1 CPU:X64 OS:X64)
!>14:03:22 Your versioning program isn't found:. Skipping task.
>Exit code: 0 Time: 3.763

I already had TortoiseSVN and WinMerge installed on my machine so maybe something is missing.

Anything I need to modify?

Thanks

Edited by water

My UDFs and Tutorials:

  Reveal hidden contents

 

Posted

  On 3/24/2013 at 11:37 AM, 'Jos said:

Did you also copy the au3.properties version from the Beta?

It has these definitions for these shortcuts:

# 15 Update Source in Version repository
command.15.*=$(SciteDefaultHome)\AutoIt3Wrapper\AutoIt3Wrapper.exe /in "$(FilePath)" /Versioning_Commit
command.name.15.*=Version Update Source
command.save.before.15.*=1
command.shortcut.15.*=F12
# 16 Compare current Source with the source in the Version repository
command.16.*=$(SciteDefaultHome)\AutoIt3Wrapper\AutoIt3Wrapper.exe /in "$(FilePath)" /Versioning_ShowDiff
command.name.16.*=Version Diff Source
command.save.before.16.*=1
command.shortcut.16.*=Alt+F12

Jos

I'll see about adding them to my au3.properties...

I'm glad I didn't overwrite it as there looks like quite a few differences.

Posted

Working fine for me now.

I got the same prompt as Water but mine worked fine (no error prompt).

BTW you instructions seem to point to a "repository per project" structure. Is that correct?

Thanks

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...