将 SVN 与记事本集成++?
我们办公室的版本控制几乎不存在,这显然导致了很多麻烦。我们想用 SVN 和 Notepad++ 设置一些东西...有人知道如何实现这一点吗?我已经开始研究并发现了这个网站:
http://www.switchonthecode。 com/tech-news/notepadplusplus-subversion-plugin
有人尝试过使用这个吗?或者类似的东西?有什么建议吗?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(6)
乌龟 SVN 位于:http://www.incrediblejunior.com/npp_plugins/
Tortoise SVN at: http://www.incrediblejunior.com/npp_plugins/
除非你强迫每个人都使用 Notepad++,否则最好找到一个更通用的客户端,例如 SmartSVN 或 TortoiseSVN。从插件网站来看,它看起来像是在幕后调用 TortoiseSVN。
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.
我使用左侧窗格中捆绑的 Light Explorer。我只需右键单击一个文件,选择“标准菜单”,就会出现带有 TortoiseSVN 的 shell 菜单。使用“Alt+A”打开左窗格。
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.
使用Notepad ++ v6.6.9,我安装了前面提到的Tortoise SVN插件 v.2.195,但是有为了能够正确使用此插件,对所提供的信息添加了两个非常有用的补充:
完成这两项操作后,我的安装现在可以通过 Notepad++ 正确使用 Tortoise SVN,并且我可以执行项目选项,即项目更新和项目提交,以及本地文件修改、差异、恢复等。
另请注意,由于当时只能连接到 tsvn,这意味着如果您想更改主项目/解决方案,则需要添加多个解决方案,甚至更重要的是使< em>tsvn 连接指向正确的解决方案!
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:
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!
您可以在 Notepad++ 中打开 diff 文件,它将显示所需的颜色。只需使用扩展名 .diff 保存 diff 输出,
例如svn diff -c 37190 > svn diff -c 37190 >变化.diff
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
如果您想将 TortoiseSVN-plugin 命令添加到上下文菜单中,您必须更改 Notepad++ 的
contextMenu.xml
文件。该文件可以在 AppData Roaming 文件夹%APPDATA%\Notepad++
中找到,也可以通过菜单 设置 → 编辑弹出上下文菜单直接在 Notepad++ 中打开。名为“TortoiseSVN”的子菜单中 SVN 更新命令的条目可能如下所示:
有关自定义的更多信息Notepad++ 上下文菜单查看其 文档。
If you want to add the TortoiseSVN-plugin commands into the context menu you have to alter the
contextMenu.xml
file of Notepad++. The file can be found in the AppData Roaming folder%APPDATA%\Notepad++
or can be opened directly in Notepad++ via menu Settings → Edit Popup ContextMenu.An entry for an SVN update command inside a submenu named "TortoiseSVN" may look like:
For more information about customizing Notepad++ context menu take a look at its documentation.