> @@ -2808,6 +2808,10 @@
> elif (line.startswith('GIT binary patch') or
> line.startswith('Binary file')):
> isbinary = True
> + elif line.startswith('rename from'):
> + filename = line.split()[-1]
> + elif line.startswith('rename to'):
> + filename += ' => %s' % line.split()[-1]
Nice.
One nit: better to not use `.split()` since a filename may include whitespace.
_______________________________________________
Mercurial-devel mailing list
[email protected]
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel