Thread (5 messages) flat view 5 messages, 4 authors, 2016-06-15

Re: [PATCH] fast-import: catch deletion of non-existent file in input

From: Jonathan Nieder <hidden>
Date: 2016-06-15 22:54:15

Hi,

Jeff King wrote:
Subject: fast-import: catch deletion of non-existent file in input
[...]
We silently ignored the bogus "D foo" directive, and the
resulting tree incorrectly contained "bar". With this patch,
we notice the bogus input and die.
This breaks svn-fe, which relies on the existing semantics when asked
to copy an empty directory.

That's my fault because we never check that in the testsuite, but I
also wouldn't be surprised if other importers were relying on the same
thing.

Any API break this big without a justification along the lines

	We can be confident that no existing importer uses this
	construct because ...

_needs_ to be guarded by a new "feature" to be safe for existing
importers.

Let's repeat that for emphasis: API breaks in fast-import not guarded
with a new "feature" type are not ok.

Sorry,
Jonathan
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help