How can I find my working revision in mercurial

前端 未结 6 534
独厮守ぢ
独厮守ぢ 2021-02-01 12:27

In a mercurial repo I can run hg up {revision} to change the revision of my working directory, but what command can I run to discover what revision I\'m looking at?

6条回答
  •  醉酒成梦
    2021-02-01 12:55

    hg identify (or hg id for short) will print the (shortened 12-character identifier of) the parent hashes, and a + if there are any uncommitted modifications in your working copy.

    To get the full hashes, you can use hg identify --debug instead.

提交回复
热议问题