将 SVN 与记事本集成++?

发布于 2024-10-09 13:49:35 字数 319 浏览 3 评论 0原文

我们办公室的版本控制几乎不存在,这显然导致了很多麻烦。我们想用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(6

南风几经秋 2024-10-16 13:49:35

除非你强迫每个人都使用 Notepad++,否则最好找到一个更通用的客户端,例如 SmartSVNTortoiseSVN。从插件网站来看,它看起来像是在幕后调用 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.

幸福还没到 2024-10-16 13:49:35

我使用左侧窗格中捆绑的 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.

身边 2024-10-16 13:49:35

使用Notepad ++ v6.6.9,我安装了前面提到的Tortoise SVN插件 v.2.195,但是有为了能够正确使用此插件,对所提供的信息添加了两个非常有用的补充:

  • 如果收到错误“无法找到 SVN 信息”,您可能需要更新它找到 TortoiseProc 的位置。 exe 文件。要更新此,请转到 Plugins >乌龟SVN> TSVN - 打开配置文件并将文件位置更新为安装中的位置。 (请注意,如果您不是管理员,您可能需要稍微修改一下才能写入此文件)
  • 其次,为了使项目/解决方案命令正常工作,您需要更新在哪里找到解决方案根目录,这可以像这样完成这:
    • 打开插件>解决方案HubUI> SolutionHubUI - 显示
    • 为您的新解决方案命名,即“我的解决方案”,并可能填写解决方案目录
    • 添加一个属性,其中键为svn_root_dir,值为您的基本 svn 文件夹(即没有 .svn-part)
    • 点击保存解决方案通过在窗口上部的连接部分中输入tsvn来连接解决方​​案,然后执行a保存连接

完成这两项操作后,我的安装现在可以通过 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:

  • 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!

请恋爱 2024-10-16 13:49:35

您可以在 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

滿滿的愛 2024-10-16 13:49:35

如果您想将 TortoiseSVN-plugin 命令添加到上下文菜单中,您必须更改 Notepad++ 的 contextMenu.xml 文件。该文件可以在 AppData Roaming 文件夹 %APPDATA%\Notepad++ 中找到,也可以通过菜单 设置编辑弹出上下文菜单直接在 Notepad++ 中打开。

名为“TortoiseSVN”的子菜单中 SVN 更新命令的条目可能如下所示:

<Item FolderName="TortoiseSVN"
      PluginEntryName="Tortoise SVN"
      PluginCommandItemName="TSVN - File update"
      ItemNameAs="Update"/>
  • FolderName 是子菜单的名称
  • PluginEntryName 是 TortoiseSVN 插件的名称
  • >PluginCommandItemName 是 TortoiseSVN 插件命令的名称(如 插件 菜单中的名称)
  • ItemNameAs 是菜单项的自定义名称

有关自定义的更多信息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 SettingsEdit Popup ContextMenu.

An entry for an SVN update command inside a submenu named "TortoiseSVN" may look like:

<Item FolderName="TortoiseSVN"
      PluginEntryName="Tortoise SVN"
      PluginCommandItemName="TSVN - File update"
      ItemNameAs="Update"/>
  • FolderName is the name of the submenu
  • PluginEntryName is the name of the TortoiseSVN-plugin
  • PluginCommandItemName is the name of the TortoiseSVN-plugin command (like in the Plugins menu)
  • ItemNameAs is a custom name for the menu item

For more information about customizing Notepad++ context menu take a look at its documentation.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文