Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Integrating SVN with Notepad++?

The version control in our office is nearly nonexistent, which has obviously led to lots of headaches. We'd like to set something up with SVN and Notepad++... Anyone have any idea of how to accomplish this? I've started researching and came across this site:

http://www.switchonthecode.com/tech-news/notepadplusplus-subversion-plugin

Has anyone ever tried using this? Or anything similar? Any suggestions?

like image 510
froadie Avatar asked Dec 28 '10 09:12

froadie


3 Answers

Tortoise SVN at: http://www.incrediblejunior.com/npp_plugins/

like image 115
jmav Avatar answered Nov 09 '22 06:11

jmav


Unless you're forcing everyone to use Notepad++, it's better to find a more universal client like SmartSVN or TortoiseSVN. From the plugin website, it looks like it's calling TortoiseSVN under the hood anyways.

like image 6
fseto Avatar answered Nov 09 '22 06:11

fseto


Using Notepad++ v6.6.9, I've installed the aforementioned Tortoise SVN plugin v. 2.195, but there are two very useful additions to the information provided to be able to make proper use of this plugin:

  • If getting the error "Can't locate SVN information", you might need to update where it finds the TortoiseProc.exe-file. To update this goto Plugins > Tortoise SVN > TSVN - Open config file and update the file location to where you have this located in your installation. (Note that you might fiddle a little bit to be able to write to this file if you are not the administrator)
  • Secondly to get the project/solution commands working you need to update where to find the solution root, and this can be done like this:
    • Open the Plugins > SolutionHubUI > SolutionHubUI - Show
    • Name your new solution, i.e. "My solution", and possibly fill in the solution dir
    • Add an attribute where key is svn_root_dir, and the value is your base svn folder (i.e. without the .svn-part)
    • Hit Save solution, and connect the solution by typing tsvn into the connections part in the upper part of the window, and then do a Save connections

After doing both of these my installation now gives me proper use of Tortoise SVN through Notepad++, and I can both do the project options, i.e. project update and project commit, and local file modifications, diffs, reverts, and so on.

Do also note that since only one connection to tsvn is possible at the time, this means that if you want to change the main project/solution, you need to add multiple solutions and even more crucial make the tsvn connections point to the correct solution!

like image 5
holroy Avatar answered Nov 09 '22 06:11

holroy