Submitter | Denis Laxalde |
---|---|
Date | March 9, 2017, 8:07 a.m. |
Message ID | <9815c7fcc947f0d125b0.1489046879@sh77.tls.logilab.fr> |
Download | mbox | patch |
Permalink | /patch/19053/ |
State | Accepted |
Headers | show |
Comments
Patch
diff --git a/mercurial/mdiff.py b/mercurial/mdiff.py --- a/mercurial/mdiff.py +++ b/mercurial/mdiff.py @@ -253,9 +253,8 @@ def unidiff(a, ad, b, bd, fn1, fn2, opts return "".join(l) -# creates a headerless unified diff -# t1 and t2 are the text to be diffed def _unidiff(t1, t2, opts=defaultopts): + """Yield hunks of a headerless unified diff from t1 and t2 texts.""" l1 = splitnewlines(t1) l2 = splitnewlines(t2) def contextend(l, len):