Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 3 May 2015 07:30:33 +0000 (UTC)
From:      Jan Beich <jbeich@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r385234 - in head/devel/hg-git: . files
Message-ID:  <201505030730.t437UXh4004957@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jbeich
Date: Sun May  3 07:30:32 2015
New Revision: 385234
URL: https://svnweb.freebsd.org/changeset/ports/385234

Log:
  devel/hg-git: fix when using with mercurial >= 3.3.3
  
  PR:		199262
  Submitted by:	Quentin Schwerkolt <schwer_q.lists@outlook.com>
  Approved by:	Marco Bröder <marco.broeder@posteo.eu> (maintainer)
  Obtained from:	https://github.com/schacon/hg-git/commit/6331251

Added:
  head/devel/hg-git/files/
  head/devel/hg-git/files/patch-hggit_gitdirstate.py   (contents, props changed)
Modified:
  head/devel/hg-git/Makefile   (contents, props changed)

Modified: head/devel/hg-git/Makefile
==============================================================================
--- head/devel/hg-git/Makefile	Sun May  3 07:30:18 2015	(r385233)
+++ head/devel/hg-git/Makefile	Sun May  3 07:30:32 2015	(r385234)
@@ -3,6 +3,7 @@
 
 PORTNAME=	hg-git
 PORTVERSION=	0.8.0
+PORTREVISION=	1
 CATEGORIES=	devel python
 MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}

Added: head/devel/hg-git/files/patch-hggit_gitdirstate.py
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/hg-git/files/patch-hggit_gitdirstate.py	Sun May  3 07:30:32 2015	(r385234)
@@ -0,0 +1,15 @@
+--- hggit/gitdirstate.py.orig	2014-05-09 14:26:29 UTC
++++ hggit/gitdirstate.py
+@@ -161,7 +161,11 @@ class gitdirstate(dirstate.dirstate):
+         results, work, dirsnotfound = self._walkexplicit(match, subrepos)
+ 
+         skipstep3 = skipstep3 and not (work or dirsnotfound)
+-        work = [d for d in work if not dirignore(d)]
++        if work and isinstance(work[0], tuple):
++            # Mercurial >= 3.3.3
++            work = [nd for nd, d in work if not dirignore(d)]
++        else:
++            work = [d for d in work if not dirignore(d)]
+         wadd = work.append
+ 
+         # step 2: visit subdirectories



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201505030730.t437UXh4004957>