ports/140027: [patch] New port: devel/hg-git. Mercurial extension to pull from or push to a Git repository

Marco Bröder marco.broeder at gmx.eu
Tue Oct 27 20:00:14 UTC 2009


>Number:         140027
>Category:       ports
>Synopsis:       [patch] New port: devel/hg-git. Mercurial extension to pull from or push to a Git repository
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Oct 27 20:00:07 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Marco Bröder
>Release:        RELENG_8 amd64
>Organization:
>Environment:
>Description:
Please look at PR: ports/140025 . It is the dependency (new) port, which needs to be committed first. Many thanks!

====

The Hg-Git plugin is an extension for Mercurial, adding the ability to push to
and pull from a Git server repository from Mercurial. This means you can
collaborate on Git based projects from Mercurial, or use a Git server as a
collaboration point for a team with developers using both Git and Mercurial.

The Hg-Git plugin can convert commits / changesets losslessly from one system to
another, so you can push via a Mercurial repository and another Mercurial client
can pull it and their changeset node ids will be identical - Mercurial data does
not get lost in translation.

This plugin is implemented entirely in Python - there are no Git binary
dependencies, you do not need to have Git installed on your system.

>How-To-Repeat:

>Fix:


Patch attached with submission follows:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	hg-git
#	hg-git/Makefile
#	hg-git/pkg-descr
#	hg-git/distinfo
#	hg-git/pkg-message
#
echo c - hg-git
mkdir -p hg-git > /dev/null 2>&1
echo x - hg-git/Makefile
sed 's/^X//' >hg-git/Makefile << '392e0096d106c388ef8005c43efc2b28'
X# Ports collection makefile for:	hg-git
X# Date created:		2009-10-24
X# Whom:			Marco Broeder <marco.broeder at gmx.eu>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	hg-git
XPORTVERSION=	0.1.0
XCATEGORIES=	devel python
XMASTER_SITES=	CHEESESHOP
XPKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
X
XMAINTAINER=	marco.broeder at gmx.eu
XCOMMENT=	Mercurial extension to pull from or push to a Git repository
X
XRUN_DEPENDS=	${PKGNAMEPREFIX}dulwich>=0.4.0:${PORTSDIR}/devel/dulwich \
X		hg:${PORTSDIR}/devel/mercurial
X
XUSE_PYTHON=	yes
XUSE_PYDISTUTILS=easy_install
X
XPLIST_SUB=	VERSION=${PORTVERSION} PYVER=${PYTHON_VERSION:S/python//}
XPLIST_FILES=	%%PYTHON_SITELIBDIR%%/hg_git-%%VERSION%%-py%%PYVER%%.egg
X
Xpost-install:
X	@${CAT} ${PKGMESSAGE}
X
X.include <bsd.port.mk>
392e0096d106c388ef8005c43efc2b28
echo x - hg-git/pkg-descr
sed 's/^X//' >hg-git/pkg-descr << 'db02597dbe7d12872ada368cf2084ec8'
XThe Hg-Git plugin is an extension for Mercurial, adding the ability to push to
Xand pull from a Git server repository from Mercurial. This means you can
Xcollaborate on Git based projects from Mercurial, or use a Git server as a
Xcollaboration point for a team with developers using both Git and Mercurial.
X
XThe Hg-Git plugin can convert commits / changesets losslessly from one system to
Xanother, so you can push via a Mercurial repository and another Mercurial client
Xcan pull it and their changeset node ids will be identical - Mercurial data does
Xnot get lost in translation.
X
XThis plugin is implemented entirely in Python - there are no Git binary
Xdependencies, you do not need to have Git installed on your system.
X
XWWW:	http://hg-git.github.com/
db02597dbe7d12872ada368cf2084ec8
echo x - hg-git/distinfo
sed 's/^X//' >hg-git/distinfo << 'c85c92fce46f19fcff6ca0898a0627be'
XMD5 (hg-git-0.1.0.tar.gz) = 2c083d92dbf89f228ae28a0fc7805d9e
XSHA256 (hg-git-0.1.0.tar.gz) = 8745c331f010dbdda6b1343a852ef3fb242d5d29196c7dd1197e27e6051212d8
XSIZE (hg-git-0.1.0.tar.gz) = 11351
c85c92fce46f19fcff6ca0898a0627be
echo x - hg-git/pkg-message
sed 's/^X//' >hg-git/pkg-message << '50b658a1f3737c0cea1d3f8413a403af'
X====
X
X*** Attention! ***
X
XTo enable the Hg-Git extension make sure you have the following lines in your
XMercurial global configuration file '~/.hgrc':
X
X[extensions]
Xbookmarks =
Xhggit =
X
XThe bookmarks section is not compulsory, but it makes some things a bit nicer.
XBookmarks will be translated to git heads when pushing.
X
X====
50b658a1f3737c0cea1d3f8413a403af
exit



>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list