检查货架

发布于 2024-09-09 12:01:47 字数 178 浏览 2 评论 0原文

我是一名开发人员,我对解决方案进行了一些更改,并将其保存到搁置集中。另一位开发人员取消了我的更改并在服务器上构建了解决方案。有没有办法让第二个开发人员签入我的搁置集?我知道他/她可以签入构成搁置集的各个文件。但是,我正在考虑一个“签入”命令,该命令将搁置集的名称作为参数,或者是否有另一种方法可以使用搁置集名称将这些更改作为一个单元进行签入。

I'm a developer and I've made some changes to a solution, which I have saved off to a shelveset. Another developer unshelves my changes and builds the solution on a server. Is there a way for the second developer to check in my shelveset? I know he/she can check in the individual files comprising the shelveset. However, I was thinking of a "checkin" command that took the name of a shelveset as a parameter, or if there was another way to check in those changes as a unit, with the shelveset name.

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

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

发布评论

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

评论(5

∞梦里开花 2024-09-16 12:01:47

其他开发人员可以打开 Visual Studio 命令提示符并使用以下命令:

tf checkin /shelveset:shelvesetname;shelvesetowner

请参阅 签入命令 在 MSDN 上了解更多详细信息。

The other developer can open a Visual Studio Command Prompt and use the following command:

tf checkin /shelveset:shelvesetname;shelvesetowner

See Checkin Command on MSDN for more details.

伏妖词 2024-09-16 12:01:47

我不认为直接通过 TFS 命令行签入是更好的方法,它可能与 TFS 上的最新代码冲突。

我认为,如果您的代码中有其他一些更改,但您没有签入,则签入搁置集的更好方法是在本地计算机中创建一个新的 WorkSpace

在此处输入图像描述

在此处输入图像描述

然后将最新代码映射到新工作区,然后取消搁置(下载)搁置集,如有必要解决冲突,然后签入代码

I don't think check-in via TFS Command Line directly is a better way, it maybe conflict with the latest code on TFS.

I think the better way to check in shelveset if there are some another changes in you code, but you don't check in it, is create a new WorkSpace in your local computer

enter image description here

enter image description here

Then map the latest code to the new workspace, then unshelve(download) the shelveset, resolve the conflict if necessary, then check in the code

一绘本一梦想 2024-09-16 12:01:47

对于遇到错误问题的用户:“无法使用 /shelveset 选项指定项目。”,请尝试将用户名放在括号中,如下所示:

tf checkin /shelveset:shelvesetname;"shelvesetowner"

For those having issues with the error:"Items cannot be specified with the /shelveset option.", try putting the user name in parenthesis as follows:

tf checkin /shelveset:shelvesetname;"shelvesetowner"

深海不蓝 2024-09-16 12:01:47

执行此操作的一个简单方法是定义一个新工作区并让开发人员取消搁置到该工作区。然后,该工作区的所有待处理更改都对应于架子集,并且他们可以签入工作区中的所有内容。

An easy way to do this is to define a new workspace and have the developer unshelve to that workspace. Then, all of the pending changes for that workspace correspond to the shelfset, and they can check in everything in the workspace.

_失温 2024-09-16 12:01:47

第二个开发者可以进入Team Explorer ->构建并右键单击您正在使用的构建定义。

  1. 选择“排队新构建...”
  2. 在组合框中“您要构建什么?”,选择“带有搁置集的最新源”。
  3. 如果您点击“...”按钮,您可以从任何人中选择任何搁置集。
  4. 然后选中“成功构建后签入更改”框。

构建使用该搁置集运行,构建通过时搁置集将被签入。

The second developer can go to Team Explorer -> Builds and right click on the Build definition you are working with.

  1. Select “Queue New Build…”
  2. In the combobox “What do you want to build?”, select “Latest sources with shelveset”.
  3. If you go to the button “…” you can select any shelveset from anyone.
  4. Then check the box “Check in changes after successful build”.

A build runs with that shelveset, the shelveset is checked in when the build passes.

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