How to find a removed file?

Chris Green cl at isbd.net
Thu Feb 10 22:35:07 UTC 2022


I removed a file called 'host_alive' from my mercurial repository
quite a while ago.  How can I get a copy of its last version?

I thought that:-
    hg log --removed host_alive

should do it but that returns nothing.  There definitely is history in
there:-

    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$ 


So how can I get a copy of it?

-- 
Chris Green


More information about the Mercurial mailing list