[PATCH] revset: support "follow(renamed.py, e22f4f3f06c3)" (issue5334)

Yuya Nishihara yuya at tcha.org
Fri Aug 19 10:16:55 EDT 2016


On Fri, 19 Aug 2016 13:56:58 +0000, Gábor STEFANIK wrote:
> > And we'll need to check if startrev is empty or not. last() returns None if the
> > set is empty. Or we might want to specify a set of start revisions?
> 
> Will add an "if rev is not None:" check here.
> 
> A set of multiple start revisions doesn't really make sense IMO. The only reason why this parameter is a revset rather than just a string is to avoid exposing the index domain of repo[...] (an implementation detail) in the UI.

For example, you might want to see the full log of files including renames,
which would be "follow(path, filelog(path))" (assuming uninteresting start
revisions would be omitted.)


More information about the Mercurial-devel mailing list