在 TFS 中重命名搁置集的最简单方法是什么?

What is the easiest way to rename a shelveset in TFS?

我正在尝试重命名一个书架集。我能想到的唯一方法是:

  1. 取消搁置(取消选中在服务器上保留搁置集)
  2. 将所有更改收集到包含的更改中(并排除不属于该搁置集的所有内容)。
  3. 用不同的名称重新搁置它

有没有更简单的方法?

(我们使用的是 TFS 版本 15.117.26714.0)

What is the easiest way to rename a shelveset in TFS?

个人认为你认为的方法是最简单或者最直接的

自从 TFS 团队在他们的老用户语音论坛上提出建议(现已关闭):

Visual Studio Team (Product Team, Microsoft) responded · March 11, 2015 Thanks for the suggestion! We’re currently in the planning process for enabling an iterative shelveset experience. We’ll update this item when we have more details.

但到目前为止,我们还没有最简单的方法来重命名 TFS 中的搁置集。而且我们没有“更新搁置集”API:

Shelvesets

没有通过 Shelve Command 重命名名称的选项。

您可以查看 this thread 了解更多详情。

所以,我同意你的想法是最简单直接的,也是我用过的方法。