git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] Make cvsexportcommit work with filenames containing spaces.

From
Robin Rosenberg <robin.rosenberg@dewire.com>
Date
Sep 23, 2006, 12:27 UTC
Message-ID
<200609231427.55721.robin.rosenberg@dewire.com>
In-Reply-To
<7vvenfw727.fsf@assigned-by-dhcp.cox.net>
lördag 23 september 2006 06:17 skrev Junio C Hamano:
Show 6 quoted lines
> 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
Show 8 quoted lines
> 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
Previous: Junio C HamanoNext: Junio C Hamano
Message 3 of 7 in “Make cvsexportcommit work with filenames containing spaces.”
  1. Make cvsexportcommit work with filenames containing spaces.Robin Rosenberg, Sep 22, 2006
  2. Junio C HamanoSep 23, 2006
  3. Robin RosenbergSep 23, 2006
  4. Junio C HamanoSep 23, 2006
  5. Robin RosenbergSep 28, 2006
  6. Junio C HamanoSep 29, 2006
  7. Robin RosenbergSep 29, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.