Patchwork [06,of,10] diffhelpers: move out of pure package

login
register
mail settings
Submitter Yuya Nishihara
Date April 11, 2018, 3:33 p.m.
Message ID <5985aee99980721a04dd.1523460836@mimosa>
Download mbox | patch
Permalink /patch/30700/
State Accepted
Headers show

Comments

Yuya Nishihara - April 11, 2018, 3:33 p.m.
# HG changeset patch
# User Yuya Nishihara <yuya@tcha.org>
# Date 1523274840 -32400
#      Mon Apr 09 20:54:00 2018 +0900
# Node ID 5985aee99980721a04dda5980dc4c33eb560ff72
# Parent  69d8de4156f5a230b8abc73d87e5aeb46ceb5b06
diffhelpers: move out of pure package

Patch

diff --git a/mercurial/pure/diffhelpers.py b/mercurial/diffhelpers.py
rename from mercurial/pure/diffhelpers.py
rename to mercurial/diffhelpers.py
--- a/mercurial/pure/diffhelpers.py
+++ b/mercurial/diffhelpers.py
@@ -1,4 +1,4 @@ 
-# diffhelpers.py - pure Python implementation of diffhelpers.c
+# diffhelpers.py - helper routines for patch
 #
 # Copyright 2009 Matt Mackall <mpm@selenic.com> and others
 #
diff --git a/mercurial/patch.py b/mercurial/patch.py
--- a/mercurial/patch.py
+++ b/mercurial/patch.py
@@ -28,6 +28,7 @@  from .node import (
 )
 from . import (
     copies,
+    diffhelpers,
     encoding,
     error,
     mail,
@@ -39,7 +40,6 @@  from . import (
     util,
     vfs as vfsmod,
 )
-from .pure import diffhelpers
 from .utils import (
     dateutil,
     procutil,