检查货架
我是一名开发人员,我对解决方案进行了一些更改,并将其保存到搁置集中。另一位开发人员取消了我的更改并在服务器上构建了解决方案。有没有办法让第二个开发人员签入我的搁置集?我知道他/她可以签入构成搁置集的各个文件。但是,我正在考虑一个“签入”命令,该命令将搁置集的名称作为参数,或者是否有另一种方法可以使用搁置集名称将这些更改作为一个单元进行签入。
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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
其他开发人员可以打开 Visual Studio 命令提示符并使用以下命令:
请参阅 签入命令 在 MSDN 上了解更多详细信息。
The other developer can open a Visual Studio Command Prompt and use the following command:
See Checkin Command on MSDN for more details.
我不认为直接通过 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
Then map the latest code to the new workspace, then unshelve(download) the shelveset, resolve the conflict if necessary, then check in the code
对于遇到错误问题的用户:“无法使用 /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"
执行此操作的一个简单方法是定义一个新工作区并让开发人员取消搁置到该工作区。然后,该工作区的所有待处理更改都对应于架子集,并且他们可以签入工作区中的所有内容。
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.
第二个开发者可以进入Team Explorer ->构建并右键单击您正在使用的构建定义。
构建使用该搁置集运行,构建通过时搁置集将被签入。
The second developer can go to Team Explorer -> Builds and right click on the Build definition you are working with.
A build runs with that shelveset, the shelveset is checked in when the build passes.