这里不再重复上一节的内容了,直接说明一下改变集包括的内容
Changeset(改变集)是对仓库中文件改变的原子粒度收集。
改变集包括:
the nodeid of its manifest
the list of changed files
information about who made the change (the "committer"), why ("comments") and when (date/time, timezone)
the name of the branch ("default", if omitted or not set)
每个改变包括0-2个父改变集:
0:root
1:普通的修改
2:两个集合merge
改变集是在commit的时候生成的。跟SVN情况相同。
改变集的例子:
1102691ceab8c8f278edecd80f2e3916090082dd <- nodeid
mpm@selenic.com <- 提交的用户
1126146623 25200 <- 时间, in seconds since the epoch, and seconds offset from UTC
mercurial/commands.py <- 修改文件列表,followed by the commit message
通过log命令可以查看改变集,教程中有给出了例子,直接看一段debug的全部信息,说明下重要的改变集相关的属性,具体命令下一节做个总结吧,这里先用。
$ hg log --debug
manifest: 1:0c7c1d435e6703e03ac6634a7c32da3a082d1600
changeset: 1:82e55d328c8ca4ee16520036c0aaace03a5beb65
tag: tip
parent: 0:0a04b987be5ae354b710cefeba0e2d9de7ad41a9
parent: -1:0000000000000000000000000000000000000000
user: mpm@selenic.com
date: Fri Aug 26 01:21:28 2005 -0700
files+: Makefile
description:
Create a makefile
-->changeset 标识了一个 改变集.
冒号前面的数字代表版本号; 它是一种标识改变集的本地缩写.只是在你的本地仓库中这个版本号才有意义.
冒号后面的那个很长的十六进制串是 ChangeSetID; 它是标识改变集的全局唯一标识符, 在所有包含这个改变集的仓库中都相同. 如果你正在和其他人讨论某个改变集,请使用这个 ChangeSetID,而不是上面说的版本号.
-->tag 是一个标签,可以理解成为一个改变集指定的名字.
你可以给任何改变集指定一个或者多个标签. 实际上, 许多改变集都是没有标签的, 所以tag这一行很多时候都不存在.
名叫tip 的特殊标签总是表示,它是仓库中最后一个改变集。 如果你创建另外的改变集(一会我们会看到),那么它将会变成 Tip。
-->
file+ 列出了在此改变集中增加的文件。
file- 列出了在此改变集中删除的文件。
manifest 给这个改变集一个 Manifest 号。(Manifest 描述了仓库中对于一个>changeset ID的内容,它主要包括了文件列表和当前版本,manifest ID用于标识特定改变集的manifest版本,多个改变集可以拥有同一个manifest版本。)
分享到:
相关推荐
离线安装包,测试可用
官方离线安装包,测试可用。使用rpm -ivh [rpm完整包名] 进行安装
mercurial-2.7-rc.tar.gz 网上下载的
emacs-mercurial-2.6.2-11.el7.x86_64.rpm
资源来自pypi官网。 资源全名:mercurial_on_remote-1.0.0.tar.gz
I chose to write about Mercurial because it is the easiest tool to learn the terrain with, and yet it scales to the demands of real, challenging environments where many other revision control tools ...
资源分类:Python库 所属语言:Python 资源全名:mercurial_extension_utils-0.11.0.tar.gz 资源来源:官方 安装方法:https://lanzao.blog.csdn.net/article/details/101784059
mercurial-3.7.1-x86.msi 最新的windows安装包,
在windows 7 64位 环境下使用nginx的nginx-http-flv-module搭建flv视频流播放所需要的资源。
python库。 资源全名:mercurial-6.0.1.tar.gz
Mercurial在IT界是跨平台的分布式版本控制软件,主要由Python语言实现。主要是命令行程序操作,图像化呢也有。由于该软件命名中文翻译是——水银,为了输入命令时方便,用元素命名Hg来作为调用程序的关键字。
mercurial安装包1.8.4 分布式版本管理工具
在windows 7 64位 环境下使用nginx的nginx-http-flv-module搭建flv视频流播放所需要的资源。
Community Edition (IDEA社区版本ideaIC-2020.3.4.exe适用于Windows系统)可免费用于个人和商业开发。IDE 和大多数捆绑插件都是开源的,在 Apache 2.0 下获得许可。 支持功能: 1.Java, Kotlin, Groovy, Scala; 2...
该插件是解决Mercurial:Hg检出的时候:The system cannot find the path specified 报错的问题
Mercurial6.2.2.zip
Community Edition (IDEA社区版本ideaIC-2020.3.4.tar.gz 适用于Linux系统)可免费用于个人和商业开发。IDE 和大多数捆绑插件都是开源的,在 Apache 2.0 下获得许可。 支持功能: 1.Java, Kotlin, Groovy, Scala;...
tested: 1.7.5 Behind-the-firewall self-hosted Mercurial server and source control management system.
SublimeHg 可以让你在 Sublime Text 编辑器中使用 Mercurial 版本控制系统。 标签:SublimeHg
Mercurial_使用教程