问题标签 [vcs-tags]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
3 回答
11606 浏览

mercurial - How to move a tag?

I want to start using tags in Mercurial. I plan to have a "stable" tag that always points to the last good revision.

As I understand it, I can tag the current changeset via hg tag stable.

What's the proper way to move the tag? When I try to run hg tag stable again it tells me:

abort: tag 'stable' already exists (use -f to force)

And if I force it, I get this bug which has no resolution or comments. i.e., it duplicates the old tag. I don't even know why the tag needs to be in there more than once in the first place; I just want to update it to point to a single changeset.

0 投票
2 回答
235 浏览

mercurial - 标签 *实际上* 是如何工作的?

文档说所有标签都存储在 中.hgtags,但显然这里有一些黑魔法。

我的标签如下所示:

如果我更新到testtag,

标签消失,

因为testtag比别人老;为什么不正常我不知道。

但是当我再次尝试更新stable时,

它神奇地起作用。如果那个标签甚至不在,那怎么可能.hgtags呢?

0 投票
0 回答
30 浏览

git - Composer + VCS + 更新到最新提交的版本

我希望作曲家更新到位于 VCS (Bitbucket GIT) 中的包的最新提交状态,但具有以下限制:

  • 无需在包 composer.json 中增加版本号
  • 无需使用新标签在 GIT 中增加版本号,例如v1.1.0
  • 软件包必须安装为dist(无.git文件夹)

我已经想通了:

  • Bitbucket 存储库必须作为 API(使用 https + oauth)而不是 ssh 来安装dist包 - 工作正常
  • GIT 中必须至少存在一个版本标签才能安装dist包(无.git文件夹) - 工作正常

据我所知,只需要一个分支或稳定性总是会导致一个source包而不是dist.

缺少什么或如何强制作曲家将包从 VCS 更新到最新提交的状态?