D5628: diffstat: make --git work properly on renames (issue6025)

Yuya Nishihara yuya at tcha.org
Fri Apr 5 21:08:12 EDT 2019


On Fri, 5 Apr 2019 20:47:21 +0000, pulkit (Pulkit Goyal) wrote:
> pulkit added inline comments.
> 
> INLINE COMMENTS
> 
> > patch.py:2811
> > +        elif line.startswith('rename to'):
> > +            filename += ' => %s' % line.split()[-1]
> >      addresult()
> 
> This is unfortunately not working with hglib. hglib seems to be splitting data on '>' or only reading data after that.
> 
> @yuja do you have any idea what can cause that?

Which hglib function?

I never thought hglib would parse diffstat output. I don't think it's parsable
(i.e. BC-guaranteed) format.


More information about the Mercurial-devel mailing list