2 # |
2 # |
3 # Copyright 2005-2009 Matt Mackall <mpm@selenic.com> and others |
3 # Copyright 2005-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 |
7 from __future__ import absolute_import |
8 import os, re, socket, errno |
8 |
9 from cStringIO import StringIO |
9 import cStringIO |
10 from mercurial import encoding, util, error |
10 import errno |
|
11 import os |
|
12 import re |
|
13 import socket |
|
14 |
|
15 from mercurial import ( |
|
16 encoding, |
|
17 error, |
|
18 util, |
|
19 ) |
11 from mercurial.i18n import _ |
20 from mercurial.i18n import _ |
12 |
21 |
13 from common import NoRepo, commit, converter_source, checktool |
22 from . import ( |
14 from common import makedatetimestamp |
23 common, |
15 import cvsps |
24 cvsps, |
|
25 ) |
|
26 |
|
27 StringIO = cStringIO.StringIO |
|
28 checktool = common.checktool |
|
29 commit = common.commit |
|
30 converter_source = common.converter_source |
|
31 makedatetimestamp = common.makedatetimestamp |
|
32 NoRepo = common.NoRepo |
16 |
33 |
17 class convert_cvs(converter_source): |
34 class convert_cvs(converter_source): |
18 def __init__(self, ui, path, revs=None): |
35 def __init__(self, ui, path, revs=None): |
19 super(convert_cvs, self).__init__(ui, path, revs=revs) |
36 super(convert_cvs, self).__init__(ui, path, revs=revs) |
20 |
37 |