Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TortoiseSVN commit shortcut

I find it tedious when everytime I need to commit a file.The process goto windows explorer window, right click directory, then click 'Commit'... and then the tortoisesvn commit window.

Anyone know of any shortcut to do this? Maybe press a keyboard shortcut to commit instead of having to right click directory then click commit?

Thank you for saving my productivity!

like image 282
Patrick Avatar asked Mar 21 '10 03:03

Patrick


People also ask

How do you commit in TortoiseSVN?

Select any file and/or folders you want to commit, then TortoiseSVN → Commit.... The commit dialog will show you every changed file, including added, deleted and unversioned files. If you don't want a changed file to be committed, just uncheck that file.

How do I commit a directory in svn?

Right-click in an empty area of the folder and select Refresh. You'll see “+” icons on the folders/files, now. Right-click an empty area in the folder once again and select SVN Commit. Add a message regarding what you are committing and click OK.

What is svn commit and update?

Read the SVN book, or at least the chapter about fundamental concepts and basic usage. Update means: "take all the new stuff in the repository and apply them in my working copy". Commit means: "take all the changes I've made in my working copy and apply them in the repository"

How do I checkout with TortoiseSVN?

Right-click on the folder and the Explorer context menu will appear, along with some new TortoiseSVN commands. Select SVN Checkout…' From here you can set the following properties: URL of Repository — the URL of the repository you wish to check out.


2 Answers

See the chapter "automating TortoiseSVN" in the docs.

You could create a shortcut to TortoiseProc.exe and add the command line params there, e.g.:

TortoiseProc.exe /command:commit /path:"path\to\your\workingcopy"
like image 101
Stefan Avatar answered Oct 11 '22 07:10

Stefan


I use autohotkey to do this.

Here are some instructions if you want to use it:

  • Download and install autohotkey.
  • Put the following text in a text file called TortoiseSVN.ahk:
; Change your hotkey here
+`::

Run TortoiseProc.exe /command:commit /path:"<path-to-your-working-copy>"

return
  • The hotkey in this script is set to shift + tilde. Look at the autohotkey docs to help you choose a different hotkey.
  • Make sure you put the path to your SVN working directory in the script.
  • Put the text file into your startup directory so that it will run when windows restarts.
  • To run the script now, just double-click the text file (providing you have already installed autohotkey).

You should now be able to use shift + tilde (or whatever your choosen hotkey) to invoke the TortoiseSVN commit dialog.

like image 20
Ashley Davis Avatar answered Oct 11 '22 06:10

Ashley Davis