Bazaar (bzr) 与 Visual Studio 集成

发布于 2024-07-09 04:14:47 字数 62 浏览 6 评论 0原文

在 Visual Studio 2008 中使用 Bazaar (bzr) 作为版本控制系统的最佳方法是什么?

What's the best way to use Bazaar (bzr) as the version control system in Visual Studio 2008?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(9

深巷少女 2024-07-16 04:14:47

我发现最好的是 TortoiseBZR 和命令行 - 没有与 VS 集成。

The best I found is TortoiseBZR and the command-line - nothing integrated with VS.

仅此而已 2024-07-16 04:14:47

我什至不会为 TortoiseBZR 烦恼; bzr 在命令行中使用非常简单。

顺便说一句:我上次尝试时,TortoiseBZR 用来锁定 Windows 资源管理器,同时它转到远程存储库以确定文件的状态,不确定它是否仍然这样做......? 另请参阅这个问题

I wouldn't even bother with TortoiseBZR; bzr is very easy to use from the command line.

BTW: The last time I tried it, TortoiseBZR used to lock up windows explorer while it went off to a remote repository to determine the status of files, not sure if it still does this ... ? See also this SO question.

感悟人生的甜 2024-07-16 04:14:47

没有与 Visual Studio 的本机集成,但有一个很好的 GUI 应用程序,称为 Bazaar Explorer。 它是官方独立安装程序的一部分,也可以作为 bzr 插件单独安装。

There is no native integration to Visual Studio, but there is good GUI application, called Bazaar Explorer. It's the part of official standalone installer, and also can be installed separately as bzr plugin.

梦与时光遇 2024-07-16 04:14:47

我知道,很旧,但由于它显示在 Google 搜索的顶部,因此最好的集成方法是 Visual Studio 的外部工具以及 tbzrcommand.exe 和 bzr.exe 的组合。 您可以设置 Status 之类的内容以转到输出窗口,以及 Diff 之类的内容以转到 tbzrcommand GUI 窗口。

(我假设你已经在这里安装了 TortoiseBzr。)以这些为例,在 VS 中打开“工具”->“外部工具”,然后添加。 对于该程序,请浏览至 Bazaar 目录并选择 bzr.exe。 将命令命名为“状态”。 对于参数,请键入“status”(无引号)。 选择将输出定向到 vs 输出窗口,该命令应在完成时终止。 在代码控制下打开一个简单的文件,并在某处添加一个空格并保存,然后在外部工具下,选择状态以验证它是否显示为待处理的提交操作。 (一旦它们起作用,您可以稍后将它们添加到它们自己的菜单中。)

接下来,添加另一个外部命令并将其命名为 Diff。 对于该程序,浏览至 Bazaar 目录,然后选择 tbzrcommand.exe。 对于参数,请键入“--command=diff --file=$(TargetPath)”(无引号)。 将所有选项保留为未选中状态。 然后,对于上面添加了空格的文件,在解决方案资源管理器窗口中选择它,然后选择“工具”->“比较”。 应该会出现一个 TortoiseBzr 窗口(以及一个烦人的 DOS 窗口),并显示文件的工作版本和最新提交版本之间的差异。

对于像提交这样需要注释的内容,您必须输入诸如“commit -m ”(无引号)之类的参数,并选中提示输入参数的框(以允许输入提交消息)。

Old, I know, but since this shows up on the top for Google search, the best way to integrate is a combination of Visual Studio's External Tools, and tbzrcommand.exe and bzr.exe. You can set up things like Status to go to the output window, and things like Diff to go to the tbzrcommand GUI window.

(I'm assuming you've installed TortoiseBzr here.) Using these as examples, in VS open Tools->External Tools, then Add. For the program, browse to the Bazaar directory and select bzr.exe. Name the command Status. For arguments, type "status" (sans quotes). Select that the output should be directed to the vs output window, that the command should be terminated when complete. Open a simple file under code control and add a space somewhere and save, then under external tools, choose status to verify that it shows up as a pending commit action. (You can add these to their own menu later, once they work.)

Next, add another external command and name this Diff. For the program, browse to the Bazaar directory, and choose tbzrcommand.exe. For arguments, type "--command=diff --file=$(TargetPath)" (sans quotes). Leave the options all unchecked. Then, for the file above that you added a space, select it in the solution explorer window and choose Tools->Diff. A TortoiseBzr window should appear (along with an annoying DOS window), and show differences between the working version and the latest commit version of the file.

For something like a commit, which requires a comment, you'll have to put in arguments like "commit -m " (sans quotes) and check the box to prompt for arguments (to allow the entry of a message for the commit).

断肠人 2024-07-16 04:14:47

Launchpad中有一个项目,但是看起来像是被废弃了,当我下载它时,我无法构建它。

这是我自己感兴趣的事情。 在 IDE 中自动跟踪添加、删除和重命名是正确的方法。 看到状态也很好。

There's a project in Launchpad, but it looks like it's abandoned, and when I downloaded it, I couldn't get it to build.

This is something I'm interested in myself. Tracking adds, drops and renames automatically in an IDE is the way to go. Seeing status is nice too.

╰沐子 2024-07-16 04:14:47

如果您不需要 SCC 集成,只需要使用该工具,请尝试本文中的设置:

http://www.codeproject.com/KB/macros/Bazaar4VS.aspx

If you don't need the SCC integration, just the ability to use the tool, try the setup in this article:

http://www.codeproject.com/KB/macros/Bazaar4VS.aspx

我偏爱纯白色 2024-07-16 04:14:47

我已经将 VisualHG 移植到 Bazaar 中:
https://launchpad.net/visualbzr

目前是 alpha 版本,仅针对 Visual Studio 进行构建和测试2010年,但常见操作应该可以正常工作。

编辑:
这个插件没有太大变化,但它现在支持 Visual Studio 2012。

I've ported VisualHG to work with Bazaar:
https://launchpad.net/visualbzr

It's currently an alpha version, and has only been built and tested for Visual Studio 2010, but common operations should work OK.

Edit:
This plugin hasn't moved on much, but it does now support Visual Studio 2012.

深者入戏 2024-07-16 04:14:47

Unified SCC 支持 bzr。 它是商业性的,但声称对 OSS 项目免费。

UnifiedSCC

Unified SCC has support for bzr. It is commercial but claims to be free for OSS projects.

UnifiedSCC

仅此而已 2024-07-16 04:14:47

我也尝试使用这个,发现Visual Studio有一个“外部工具”选项,可以在工具栏下找到。 经过试用,我发现可以创建指向 bzr.exe(或您可能想要使用的任何其他 exe 工具)的链接。 然后,它要求争论。 在这里你可以开始使用魔法。

对我来说,为了直接提交更改,我创建了一个 commit -m "" 的争论,如果工作目录中存在的话,它会在没有消息的情况下提交到 bzr 分支(要实现这一点,您还必须将起始目录更改为解决方案目录)。

我还使用类似的思想为我的启动板创建了一个推送命令

I too was trying to use this, and found that visual studio has an option of "External Tools", which can be found under the tools tool bar. Upon trial, I found that one could create a link to the bzr.exe (or any other exe tools you may want to use). Then, it asks for arguements. It is here where you can begin to use magic.

For me, to commit changes directly, I have created an arguement of commit -m "", which commits without message to the bzr branch if one exists in the working directory (to achieve this, you also have to change the starting directory to solution directory).

I also created a push command to my launchpad using similar idealogy

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