[PATCH 4 of 4] log: add TODO comments about --line-range processing

Denis Laxalde denis at laxalde.org
Mon Feb 12 06:04:21 EST 2018


Yuya Nishihara a écrit :
> This is totally unrelated topic, but how would we do if we want to support
> non-contiguous range?
> 
>   -L file,a:b,c:d
> 
> is ambiguous because file may contain ",".

I guess we could iteratively rsplit(",", 1) the file pattern and try to
parse "from:to" until it fails, meaning that the remaining would be the
file name. Slightly more complicated than it is now, but still doable I
think.


More information about the Mercurial-devel mailing list