Integrating SVN with Notepad++?

后端 未结 5 1579
没有蜡笔的小新
没有蜡笔的小新 2021-01-05 02:40

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 a

相关标签:
5条回答
  • 2021-01-05 02:41

    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.

    0 讨论(0)
  • 2021-01-05 02:44

    You can open a diff file in Notepad++ and it will display the colours as desired. Simply save the diff output with extension .diff

    e.g. svn diff -c 37190 > changes.diff

    0 讨论(0)
  • 2021-01-05 02:51

    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!

    0 讨论(0)
  • 2021-01-05 02:55

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

    0 讨论(0)
  • 2021-01-05 03:06

    I use the bundled Light Explorer on the left pane. I just right-click a file, select 'standard menu', and there's my shell menu with TortoiseSVN. Use "Alt+A" to open the left pane.

    0 讨论(0)
提交回复
热议问题