comparison README.txt @ 67:d88ce26e0946

README: improve dependency instructions.
author Greg Ward <greg@gerg.ca>
date Sun, 26 Jul 2015 12:42:36 -0400
parents 280eb5061a5e
children 4954b4f1faab
comparison
equal deleted inserted replaced
66:ae32828c68d7 67:d88ce26e0946
23 23
24 24
25 DEPENDENCIES 25 DEPENDENCIES
26 ------------ 26 ------------
27 27
28 hg-fastimport requires Mercurial 1.3. 28 hg-fastimport depends on:
29 29
30 hg-fastimport depends on the python-fastimport library (which was extracted 30 * Mercurial 1.6, 1.7, or 1.8
31 from bzr-fastimport). python-fastimport lives on launchpad.net at 31 * python-fastimport
32 32
33 https://code.launchpad.net/python-fastimport 33 The easiest way to get python-fastimport to use OS packages. E.g. for
34 Debian and Ubuntu:
34 35
35 To make the 'fastimport' package provided by python-fastimport available 36 sudo aptitude install python-fastimport
36 to hg-fastimport, you need to add the python-fastimport directory to
37 PYTHONPATH, e.g.
38 37
39 PYTHONPATH=$HOME/src/pyfastimport 38 Likewise for Fedora:
40 39
41 It should also be possible to install python-fastimport from cheeshop: 40 sudo yum install python-fastimport
42 41
43 $ easy_install install python-fastimport 42 On other operating systems, you can install from PyPI:
44 43
45 And most Linux distributions have it packaged. 44 pip install fastimport
45
46 If all else fails, you can find the source for python-fastimport here:
47
48 https://github.com/jelmer/python-fastimport
46 49
47 USAGE 50 USAGE
48 ----- 51 -----
49 52
50 To use hg-fastimport, add a line like 53 To use hg-fastimport, add a line like
51 54
52 fastimport = /path/to/hg-fastimport/hgfastimport 55 fastimport = /path/to/hg-fastimport/hgfastimport
53 56
54 to the [extensions] section of your hgrc. Don't forget to set 57 to the [extensions] section of your hgrc. Don't forget to install
55 PYTHONPATH as explained above. 58 python-fastimport as explained above.
56 59
57 To import into a brand-new Mercurial repository: 60 To import into a brand-new Mercurial repository:
58 61
59 hg init new 62 hg init new
60 hg -R new fastimport FILE... 63 hg -R new fastimport FILE...