You can construct URLs like:

https://hg.mozilla.org/mozilla-central/log/default/dom/canvas/WebGLContextReporter.cpp

`hg log <path>` will also show the history of a known path ever under
version control.

The query should be very fast (even if the path disappeared hundreds of
thousands of commits ago) because Mercurial stores file data by its path.
Contrast with Git, where it has to resolve trees for all commits until it
can find a reference to a path.

$ time hg log dom/canvas/WebGLContextReporter.cpp > /dev/null
0.110s real

$ time git log -- dom/canvas/WebGLContextReporter.cpp > /dev/null
3.175s


On Fri, Aug 26, 2016 at 1:25 PM, Philip Chee <philip.c...@gmail.com> wrote:

> I need to look at the history of a file that has since been removed from
> the tree. Can DXR help me track this down?
>
> Phil
>
> --
> Philip Chee <phi...@aleytys.pc.my>, <philip.c...@gmail.com>
> http://flashblock.mozdev.org/ http://xsidebar.mozdev.org
> Guard us from the she-wolf and the wolf, and guard us from the thief,
> oh Night, and so be good for us to pass.
> _______________________________________________
> dev-platform mailing list
> dev-platform@lists.mozilla.org
> https://lists.mozilla.org/listinfo/dev-platform
>
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to