hg-log

Mercurial - determine where file was removed?

£可爱£侵袭症+ 提交于 2020-01-12 03:10:08
问题 If you do hg log myfile -v you see a list of changesets that the file was modified in. In our case, in the most recent changeset, the file was removed. But you can't tell this by looking at the verbose (-v) output of hg log. Is there an easy Mercurial command you can use to determine if and when a file has been removed from the repo? Update : Note that this is on a Windows client, and we are using Mercurial v 1.4.3 Update 2 : Appears the answers below would work with a more recent version of

Mercurial get branch name by changeset

随声附和 提交于 2019-12-02 01:45:49
问题 I have tried the hg log --rev "branch([changeset])" but what I got is a collection of all the changesets in this branch. What I do want to get is the name of the target branch (e.g. default) instead of the whole collection. Is there a way to achieve this goal? 回答1: That's... not what revsets are for. You want to do something rather different: hg log --rev [changeset] --template "{branch}\n" See hg help templates. 来源: https://stackoverflow.com/questions/30881351/mercurial-get-branch-name-by