# -*- coding: ascii; tab-width: 4 -*-
Info2: <<
Package: hg-fast-export
Version: 20190820
Revision: 1
Type: py (2.7)
Description: Hg to git converter using git-fast-import
DescDetail: <<
	hg-fast-export.sh is a script to import a mercurial repo into
	a git repo using the git-fast-import mechanism.
	
	Everything is licensed under the MIT license except for
	hg-reset.py which is GPL2 since it uses code from mercurial.
<<
DescUsage: <<
Using hg-fast-export is quite simple for a mercurial repository <repo>:

  mkdir repo-git # or whatever
  cd repo-git
  git init
  hg-fast-export.sh -r <repo>

Incremental imports to track hg repos is supported, too.

Using hg-reset it is quite simple within a git repository that is
hg-fast-export'ed from mercurial:

  hg-reset.sh -R <revision>

will give hints on which branches need adjustment for starting over
again.
<<
Maintainer: Daniel Johnson <daniel@daniel-johnson.org>
License: GPL2
Homepage: http://repo.or.cz/w/fast-export.git

Source: https://codeload.github.com/danielj7/fast-export/tar.gz/%v
Source-Checksum: SHA256(6b723fbda12a1a41eccfcd8c28684b75562b6ff3bb808bdeeb9e2a98a5418413)
SourceRename: %n-%v.tar.gz
SourceDirectory: fast-export-%v

Depends: <<
	git,
	mercurial-py%type_pkg[py],
	python%type_pkg[py]
<<

PatchScript: <<
	perl -pi -e 's|PYTHON=.*$|PYTHON="%p/bin/python%type_raw[py]"|' hg-fast-export.sh hg-reset.sh
	perl -pi -e 's|/usr/bin/env python|%p/bin/python%type_raw[py]|' hg-fast-export.py hg-reset.py
	perl -pi -e 's|import pluginloader|from hgfastexport import pluginloader|' hg-fast-export.py
<<

CompileScript: <<
	%p/bin/python%type_raw[py] -m compileall hg2git.py
<<

InstallScript: <<
	mkdir -p %i/bin
	cp hg-fast-export.py hg-fast-export.sh %i/bin
	cp hg-reset.py hg-reset.sh %i/bin
	mkdir -p %i/share/man/man1
	cp *.1 %i/share/man/man1
	mkdir -p %i/lib/python%type_raw[py]/site-packages/hgfastexport
	cp hg2git* %i/lib/python%type_raw[py]/site-packages
	cp -R pluginloader plugins %i/lib/python%type_raw[py]/site-packages/hgfastexport
	touch %i/lib/python%type_raw[py]/site-packages/hgfastexport/__init__.py
	cd %i/lib/python%type_raw[py]/site-packages && %p/bin/python%type_raw[py] -m compileall hgfastexport
<<

DocFiles: COPYING* README*
<<