Return-Path: X-Original-To: apmail-subversion-users-archive@minotaur.apache.org Delivered-To: apmail-subversion-users-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3605611834 for ; Fri, 2 May 2014 19:15:56 +0000 (UTC) Received: (qmail 90264 invoked by uid 500); 2 May 2014 19:09:43 -0000 Delivered-To: apmail-subversion-users-archive@subversion.apache.org Received: (qmail 89595 invoked by uid 500); 2 May 2014 19:09:08 -0000 Mailing-List: contact users-help@subversion.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@subversion.apache.org Received: (qmail 87288 invoked by uid 99); 2 May 2014 19:07:26 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 May 2014 19:07:26 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of ericmberge@gmail.com designates 209.85.216.49 as permitted sender) Received: from [209.85.216.49] (HELO mail-qa0-f49.google.com) (209.85.216.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 May 2014 19:07:23 +0000 Received: by mail-qa0-f49.google.com with SMTP id cm18so3590502qab.22 for ; Fri, 02 May 2014 12:07:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=v4s1oV/GNHhyr53ACAPor6l2LOvmsZ+uErAjHyepDNk=; b=DL81igCyENnDJFiQPtxS48YBasg9KkkuhTJnyYR84ZfuL31uUk9mWkD8LxXkQxs68M v7TcYE1u3+f/bqcxsrPilDJOR1wZzT5kSJHAdFFzhSUohzyPaTfnvaWMr7JwYBYJYTzk y4HfJKHoKBz7OVcy83P9nhcQjcn8FuGjwsEBNOL9NZQgKAmT6xhnom2QQkXeq9MTWQXK aR9ryXtnHk6R2B6upIrX0+PLqES6ZxtTLjqRGD8Us2y3eijksmYFaxNa8W+1+BDavITq vklp4AlxoKQ8G8wvY+rpZllcreEWtTXfzD3eKI+uaAqXVHZz/k8yQTwz+JGD4DDzBiHx PbVw== MIME-Version: 1.0 X-Received: by 10.224.61.200 with SMTP id u8mr25649422qah.18.1399057606335; Fri, 02 May 2014 12:06:46 -0700 (PDT) Received: by 10.140.106.165 with HTTP; Fri, 2 May 2014 12:06:46 -0700 (PDT) In-Reply-To: <20140502090557.GJ19005@ted.stsp.name> References: <20140502090557.GJ19005@ted.stsp.name> Date: Fri, 2 May 2014 14:06:46 -0500 Message-ID: Subject: Re: Git Patch fails to apply with Svn Patch From: Eric Berge To: Eric Berge , users@subversion.apache.org Content-Type: multipart/mixed; boundary=089e0149512ca5766804f86f7b46 X-Virus-Checked: Checked by ClamAV on apache.org --089e0149512ca5766804f86f7b46 Content-Type: multipart/alternative; boundary=089e0149512ca5766404f86f7b44 --089e0149512ca5766404f86f7b44 Content-Type: text/plain; charset=UTF-8 The original patch file I used is attached. Thanks! Eric On Fri, May 2, 2014 at 4:05 AM, Stefan Sperling wrote: > On Thu, May 01, 2014 at 02:30:33PM -0500, Eric Berge wrote: > > I was running "svn patch" with a patch I created with "git diff" and it > > failed to apply, however it applies just fine with the default "patch" > > command on my Rhel 6.5 system. > > > > This is due to the "extended header" information that git puts before the > > actual diff in some cases. I validated this by removing the lines > > beginning with "old mode" and "new mode" in the patch below (file > "PATCH2") > > and then "svn patch" applied the patch successfully. > > Hi Eric, > > can you please re-send the patch which failed to apply as an attachment? > It seem your mailer mangled the patch. The patch format is whitespace > sensitive, unfortunately (e.g. tabs vs. spaces matter). > > Thanks! > --089e0149512ca5766404f86f7b44 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
The original patch file I used is attached.

=
Thanks!

Eric



On Fri, May 2, 2014= at 4:05 AM, Stefan Sperling <stsp@elego.de> wrote:
On Thu, May 01, 2014 at 02:3= 0:33PM -0500, Eric Berge wrote:
> I was running "svn patch" with a patch I created with "= git diff" and it
> failed to apply, however it applies just fine with the default "p= atch"
> command on my Rhel 6.5 system.
>
> This is due to the "extended header" information that git pu= ts before the
> actual diff in some cases. =C2=A0I validated this by removing the line= s
> beginning with "old mode" and "new mode" in the pa= tch below (file "PATCH2")
> and then "svn patch" applied the patch successfully.

Hi Eric,

can you please re-send the patch which failed to apply as an attachment? It seem your mailer mangled the patch. The patch format is whitespace
sensitive, unfortunately (e.g. tabs vs. spaces matter).

Thanks!

--089e0149512ca5766404f86f7b44-- --089e0149512ca5766804f86f7b46 Content-Type: application/octet-stream; name=PATCH2 Content-Disposition: attachment; filename=PATCH2 Content-Transfer-Encoding: base64 X-Attachment-Id: f_hupuqt1l0 ZGlmZiAtLWdpdCBhL01ha2VmaWxlIGIvTWFrZWZpbGUKb2xkIG1vZGUgMTAwNjQ0Cm5ldyBtb2Rl IDEwMDc1NQppbmRleCBjYWVmMGE1Li4zMTBlOGU5Ci0tLSBhL01ha2VmaWxlCisrKyBiL01ha2Vm aWxlCkBAIC01LDYgKzUsNyBAQCBleHBvcnQgQlVJTERfU1lTX1JPT1QKIGV4cG9ydCBCVUlMRF9U QVJHRVRfUk9PVAogZXhwb3J0IEJVSUxEX0RJUgogZXhwb3J0IENNQUtFX1BBU1NUSFJPVUdIX0FS R1MKK2V4cG9ydCBBRERfRkFLRV9WQVJJQUJMRQogZXhwb3J0IERFU1RESVIKIGV4cG9ydCBESVNU UEtHX0xPQwogZXhwb3J0IFdJVEhfTU9WRVIK --089e0149512ca5766804f86f7b46--