From: Robin Rosenberg <robin.rosenberg@dewire.com>
To: Junio C Hamano <junkio@cox.net>
Cc: git@vger.kernel.org
Subject: Re: [PATCH] Make cvsexportcommit work with filenames containing spaces.
Date: Sat, 23 Sep 2006 14:27:55 +0200 [thread overview]
Message-ID: <200609231427.55721.robin.rosenberg@dewire.com> (raw)
In-Reply-To: <7vvenfw727.fsf@assigned-by-dhcp.cox.net>
lördag 23 september 2006 06:17 skrev Junio C Hamano:
> Robin Rosenberg <robin.rosenberg@dewire.com> writes:
> > Binary files are except to this so far.
>
> Funny. This works on my home machine (CVS 1.12.13) while it
> does not pass test #2 "with spaces" on another machine that has
> CVS 1.11.22.
That must be something else. I've tried with various cvs versions here
(including plain 1.11.22) on Mandriva and SLES and it works on all with the
lastest git on master (and 1.4.2.1).
Could you give me some more info, like the output from -v on the failing
machine and your perl and patch version numbers and locale? I'm just guessing
what could matter here.
Why patch? Well this patch works around (i.e. not perfect) a mismatch between
what patch eats and git submits. They are not totally, compatible, and I'm
not sure who to blame yet. git emits diff's without timestamps, and what
matters to patch, without a TAB before the file timestamp. When patch sees a
header like "+++ filename with spaces.txt" it patches "filename". When it
sees "+++ filename with spaces.txt<TAB>" if patches "filename with
spaces.txt". The real fix would ofcourse be in git diff or patch sometime in
the future.
> > +. ./test-lib.sh
> > +
> > +export CVSROOT=$(dirname $(pwd))/cvsroot
> > +export CVSWORK=$(dirname $(pwd))/cvswork
acknowledged
> You are creating t/{cvsroot,cvswork} directories. Do not
> contaminate outside the test/trash directory your tests is
> started in.
>
> > +rm -rf $CVSROOT $CVSWORK
>
> People's $(pwd) can contain shell $IFS characters, especially on
> Cygwin. Be careful and quote them when in doubt.
Considering this is a patch that should improve on whitespace handlung... ok.
I'll resubmit later.
-- robin
next prev parent reply other threads:[~2006-09-23 12:27 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-09-22 22:35 [PATCH] Make cvsexportcommit work with filenames containing spaces Robin Rosenberg
2006-09-23 4:17 ` Junio C Hamano
2006-09-23 12:27 ` Robin Rosenberg [this message]
2006-09-23 19:03 ` Junio C Hamano
2006-09-28 23:28 ` Robin Rosenberg
2006-09-29 6:37 ` Junio C Hamano
2006-09-29 7:25 ` Robin Rosenberg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200609231427.55721.robin.rosenberg@dewire.com \
--to=robin.rosenberg@dewire.com \
--cc=git@vger.kernel.org \
--cc=junkio@cox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).