[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Do we want 'svn patch' to be able to add empty files?

From: Augie Fackler <durin42_at_gmail.com>
Date: Fri, 3 Sep 2010 19:46:11 -0500

On Sep 2, 2010, at 4:03 AM, Daniel Näslund wrote:

>>> $ svn diff --git
>>> Index: empty
>>> ===================================================================
>>> diff --git a/trunk/empty b/trunk/empty
>>> new directory mode 10644

I'd recommend testing this against hg/git before using it, but it
should operate correctly in hg given my recollection of the diff parser.

>> IIRC trailing slashes on "empty/" were suggested on IRC, what was the
>> conclusion about that?
> I didn't follow that one (atleast I don't recall following it) but
> will
> stay tuned for the resolution of the discussion.

"new file mode" with a trailing slash is likely to behave poorly when
thrown at the current diff parsers in git and hg. I'm not sure what
it'd try to do.
Received on 2010-09-04 06:21:02 CEST

This is an archived mail posted to the Subversion Dev mailing list.