问题标签 [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.
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.
mercurial - 标签 *实际上* 是如何工作的?
文档说所有标签都存储在 中.hgtags
,但显然这里有一些黑魔法。
我的标签如下所示:
如果我更新到testtag
,
标签消失,
因为testtag
比别人老;为什么不正常我不知道。
但是当我再次尝试更新stable
时,
它神奇地起作用。如果那个标签甚至不在,那怎么可能.hgtags
呢?
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 更新到最新提交的状态?