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

Re: [PATCH] Explain how svn-fe parses filenames in SVN dumps

From
Jonathan Nieder <jrnieder@gmail.com>
Date
Apr 14, 2012, 17:14 UTC
Message-ID
<20120414171431.GA4161@burratino>
In-Reply-To
<4F89ADCD.6000109@pileofstuff.org>
Hi,
Andrew Sayers wrote:
> Before version 1.2.0, `svn add` supported files containing characters in the
> range 0x01-0x1F, and Subversion still supports existing files that contain
> those characters.
Because of the above,
[...]
Show 14 quoted lines
> +++ b/contrib/svn-fe/svn-fe.txt
> @@ -59,6 +59,14 @@ to put each project in its own repository and to separate the history
>  of each branch.  The 'git filter-branch --subdirectory-filter' command
>  may be useful for this purpose.
>  
> +Filenames are interpreted by svn-fe as binary data, and may contain
> +any character except NUL (0x00) and newline (0x0A).  The NUL
> +character is not valid in git paths, and the newline character is
> +reserved for use by the (line-based) Subversion dumpfile format.
> +This differs from Subversion, which requires filenames to contain
> +only legal XML characters and disallows tabs characters, carriage
> +returns and newlines.
> +
>  BUGS

this description and the location of this description seem quite misleading. Isn't what the reader needs to know something like the following?

	BUGS
	----
	Due to limitations in the Subversion dumpfile format, svn-fe
	does not support filenames with newlines.  Since version 1.2.0,
	"svn add" forbids adding such filenames but some historical
	repositories contain them.  An import can appear to succeed and
	produce incorrect results when such pathological filenames are
	present.

Thanks, Jonathan

Previous: Andrew SayersNext: Andrew Sayers
Message 2 of 7 in “Explain how svn-fe parses filenames in SVN dumps”
  1. Explain how svn-fe parses filenames in SVN dumpsAndrew Sayers, Apr 14, 2012
  2. Jonathan NiederApr 14, 2012
  3. Andrew SayersApr 14, 2012
  4. Jonathan NiederApr 14, 2012
  5. Jonathan NiederApr 14, 2012
  6. Andrew SayersApr 14, 2012
  7. Jonathan NiederApr 15, 2012

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.