How to find a removed file?

Chris Green cl at isbd.net
Fri Feb 11 09:15:09 UTC 2022


On Thu, Feb 10, 2022 at 04:19:33PM -0700, Tom Hindle wrote:
>    oh it you want one command then something like:
>    hg log -r "parents(removes('*host_alive*'))" -T {rev} | xargs hg cat
>    host_alive -r

hg log -r "parents(removes('*host_alive*'))" -T {rev}

returns absolutely nothing.

Just to show I am in the right place:-

    chris at esprimo$ find . -name '*host_alive*'
    ./.hg/store/data/share/bin/host_alive.i
    ./.hg/store/data/bin/host_alive.i
    ./.hg/store/data/t470/bin/host_alive.i
    ./.hg/store/data/isbd/bin/host_alive.i
    ./.hg/store/data/esprimo/bin/host_alive.i
    ./.hg/store/data/host_alive.i
    chris at esprimo$ hg log -r "parents(removes('*host_alive*'))" -T {rev}
    chris at esprimo$ 

-- 
Chris Green



More information about the Mercurial mailing list