How to find a removed file?

Tom Hindle tom_hindle at sil.org
Thu Feb 10 23:12:40 UTC 2022


hg log -r removes('*host_alive*')

On Thu, Feb 10, 2022 at 3:51 PM Chris Green <cl at isbd.net> wrote:

> 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
> _______________________________________________
> Mercurial mailing list
> Mercurial at mercurial-scm.org
> https://www.mercurial-scm.org/mailman/listinfo/mercurial
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20220210/a54f8f06/attachment-0002.html>


More information about the Mercurial mailing list