拥有 .hgtags 的目的是什么

发布于 2024-10-07 19:40:40 字数 223 浏览 1 评论 0原文

我可以知道拥有 .hgtags 的目的是什么吗?我可以删除它吗?因为它不在 .hg 文件夹中,并且似乎“污染”了我的实际源代码目录。

https://bz.mercurial-scm.org/show_bug.cgi?id= 1205

May I know what is the purpose of having .hgtags? Can I remove it? As it is not in .hg folder, and seems "pollute" my actual source code directory.

https://bz.mercurial-scm.org/show_bug.cgi?id=1205

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

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

发布评论

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

评论(1

爱人如己 2024-10-14 19:40:40
$ hg tag --help
hg tag [-f] [-l] [-m TEXT] [-d DATE] [-u USER] [-r REV] NAME...

add one or more tags for the current or given revision

    ...

    To facilitate version control, distribution, and merging of tags,
    they are stored as a file named ".hgtags" which is managed
    similarly to other project files and can be hand-edited if
    necessary. The file '.hg/localtags' is used for local tags (not
    shared among repositories).

    ...

从您链接的问题来看:

Mercurial 目前在非版本控制的事物和版本控制的事物之间有很好的分离。

由于 .hgtags 受版本控制,因此 .hg 中。与 .hg/hgrc(在 .hg 中;不受版本控制)和 .hgignore(不在 .hg 中;受版本控制)进行比较。

$ hg tag --help
hg tag [-f] [-l] [-m TEXT] [-d DATE] [-u USER] [-r REV] NAME...

add one or more tags for the current or given revision

    ...

    To facilitate version control, distribution, and merging of tags,
    they are stored as a file named ".hgtags" which is managed
    similarly to other project files and can be hand-edited if
    necessary. The file '.hg/localtags' is used for local tags (not
    shared among repositories).

    ...

From the issue you linked:

Mercurial currently has a very nice separation between things which are not version-controlled and things that are which this would ruin.

Because .hgtags is version-controlled, it is not in .hg. Compare to .hg/hgrc (in .hg; not version-controlled) and .hgignore (not in .hg; version-controlled).

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