equal
deleted
inserted
replaced
6 # GNU General Public License version 2 or any later version. |
6 # GNU General Public License version 2 or any later version. |
7 # |
7 # |
8 # This code is based on the Mark Edgington's crecord extension. |
8 # This code is based on the Mark Edgington's crecord extension. |
9 # (Itself based on Bryan O'Sullivan's record extension.) |
9 # (Itself based on Bryan O'Sullivan's record extension.) |
10 |
10 |
11 from mercurial.i18n import _ |
11 from i18n import _ |
12 |
12 import patch as patchmod |
13 from mercurial import patch as patchmod |
13 import util, encoding |
14 from mercurial import util |
|
15 from mercurial import demandimport |
|
16 demandimport.ignore.append('mercurial.encoding') |
|
17 try: |
|
18 import mercurial.encoding as encoding |
|
19 code = encoding.encoding |
|
20 except ImportError: |
|
21 encoding = util |
|
22 code = encoding._encoding |
|
23 |
14 |
24 import os |
15 import os |
25 import re |
16 import re |
26 import sys |
17 import sys |
27 import fcntl |
18 import fcntl |