Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/pure/diffhelpers.py @ 27336:80214358ac88
diffhelpers: use absolute_import
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Sat, 12 Dec 2015 13:35:41 -0500 |
parents | 4f8067c94729 |
children | f53b55b162f4 |
comparison
equal
deleted
inserted
replaced
27335:c4e3ff497f89 | 27336:80214358ac88 |
---|---|
2 # | 2 # |
3 # Copyright 2009 Matt Mackall <mpm@selenic.com> and others | 3 # Copyright 2009 Matt Mackall <mpm@selenic.com> and others |
4 # | 4 # |
5 # This software may be used and distributed according to the terms of the | 5 # This software may be used and distributed according to the terms of the |
6 # GNU General Public License version 2 or any later version. | 6 # GNU General Public License version 2 or any later version. |
7 | |
8 from __future__ import absolute_import | |
7 | 9 |
8 def addlines(fp, hunk, lena, lenb, a, b): | 10 def addlines(fp, hunk, lena, lenb, a, b): |
9 while True: | 11 while True: |
10 todoa = lena - len(a) | 12 todoa = lena - len(a) |
11 todob = lenb - len(b) | 13 todob = lenb - len(b) |