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

Re: Issue 2333: svn diff URL1 URL2 / diff URL2 URL1

From: Malcolm Rowe <malcolm-svn-dev_at_farside.org.uk>
Date: 2005-09-08 17:42:11 CEST

Hi all,

After further analysis, I think that this may be the 'well-known' problem of
'svn diff' not being able to properly report on directory deletes, rather
than anything specifically to do with directory moves or renames.

(for example: 'svn diff -r15333:15334 http://svn.collab.net/repos/svn'
returns nothing, rather than the expected diff produced by the deletion of
the non-empty /trunk/doc/translations/norwegian_nb directory).

I say 'well-known' because, although there appears to be no issue logged or
XFail test, if you look in subversion/tests/clients/cmdline/diff_tests.py,
there's a commented out test, and comment that reads "### TODO: directory
delete doesn't work yet", so presumably somebody knows about it.

While I'm still not entirely sure what works and what doesn't (I seemed to
get some contradictory results while I was testing), I'm fairly sure that
repos->repos diffs never report directory deletions, whether from a delete
or a rename. Fortunately, the other common use cases seem to work fine.

I'm guessing that the primary cause of this is that the directory contents
aren't available to the client. (And indeed, for an update or merge against
a working copy, you wouldn't _want_ to download the deleted contents). So
any fix has probably got to add an option to extend the remote report to
include the complete contents of deleted directories (or have the client
fetch the directory contents out-of-band, but I suspect this would be even
harder, as well as being messier).

That sounds beyond what I might be able to do, unfortunately, so I probably
won't be spending any more time on this issue.

Regards,
Malcolm

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Sep 8 17:45:01 2005

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.