Thursday, September 29, 2016

Integrate the Tortoise SVN with Notepad++



I would like to share the idea to integrate the Tortoise SVN with Notepad++, so that we can directly perform SVN action instead of moving the physical files.

            Goto Run -> Use Command Given below for each SVN Action -> Press Save -> Enter the Name for the Action and Short Cut of your preference -> Ok -> Run

            Add (Open file which needs to be Added)
                        "C:\Program Files\TortoiseSVN\bin\TortoiseProc.exe" /command:add /path:"$(FULL_CURRENT_PATH)" /notempfile /closeonend:3
            Commit (Open file which needs to be commit)
                        "C:\Program Files\TortoiseSVN\bin\TortoiseProc.exe" /command:commit /path:"$(FULL_CURRENT_PATH)" /notempfile /closeonend:0
            Update(Open file which needs update)
                        "C:\Program Files\TortoiseSVN\bin\TortoiseProc.exe" /command:update /path:"$(FULL_CURRENT_PATH)" /notempfile
            Commit Folder(Open any file from that folder)
                        "C:\Program Files\TortoiseSVN\bin\TortoiseProc.exe" /command:commit /path:"$(CURRENT_DIRECTORY)" /notempfile
            Update Folder(Open any file from that folder)
                        "C:\Program Files\TortoiseSVN\bin\TortoiseProc.exe" /command:update /path:"$(CURRENT_DIRECTORY)" /notempfile
            Folder Log(Open any file from that folder)
                        "C:\Program Files\TortoiseSVN\bin\TortoiseProc.exe" /command:log /path:"$(CURRENT_DIRECTORY)" /notempfile
            Difference(Open file which needs to check for Difference)
                        "C:\Program Files\TortoiseSVN\bin\TortoiseProc.exe" /command:diff /path:"$(FULL_CURRENT_PATH)" /notempfile
                       
            Note : File should be in same path where it’s been checked out, File should be saved before Add/Commit/Difference. Same way we can implement other options.

            To remove the command
            Run -> Modify Shortcut/Delete Command...

We can also use the below script to make a batch file and schedule it at system startup to update the local checked out working copy.
"C:\Program Files\TortoiseSVN\bin\TortoiseProc.exe" /command:update /path:"D:\PLAS Prod SVN" /notempfile

2 comments:

  1. You could be more descriptive. I am lost at your very first instructions itself. Screenshots would actually help.

    ReplyDelete
  2. Finally found in here what I was searching for! Thank you for sharing!

    ReplyDelete