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

[PA^H^H^H[HACK] Issue #786: implement deltaV auto-versioning

From: Jay Freeman \(saurik\) <saurik_at_saurik.com>
Date: 2002-07-13 02:44:43 CEST

I highly disrecommend using this for much, but if anyone wants
auto-versioning, here it is: http://test.saurik.net/autoV.patch . Note the
patch is against the mod_dav_svn directory only.

WARNING -- WARNING -- WARNING -- WARNING
DO NOT USE THIS ON AN IMPORTANT REPOSITORY
IT ALMOST ASSURADELY *IS* SCREWING STUFF UP
(more on that later in this e-mail)

I couldn't for the life of me figure out how to "add comment" to an existing
issue, so I didn't :). I can add a _new_ issue, but I can't comment on an
existing one (which I vaguely remember coming up in the past... someone
asked if I could comment on an issue and I was forced to continue using the
mailing list...).

This supports, from Windows' built-in "Web Folder" stuff:

mkdir
copy
move/rename
delete
upload

:; which, I figure is sufficient for 100% of what I use WebDAV for (and
probably 20% of what anyone else does with my luck). Note that I
implemented move/rename as a copy, followed by a commit, followed by a
delete, followed by a commit. I'll probably fix this in the near future.
Considering how much other revision thrashing is going to happen when you
want to start using this as a file system, I figured it wasn't that big of a
deal :).

Maybe someone will find this useful? If not it might just need to get
thrown away... ;)

I took the stance that the minimal number of changes required is either the
most elegant approach or the worst hack. Considering how little I
understand the speghetti-code mod_dav_svn is using for error handling (my
GOD), and how locked in most of the code is to being called from mod_dav
itself, I am rather confident I hit the latter.

Note that while I can check out the stuff I create using this with the
regular client, and even do hybrid diffs, I couldn't do a purely remote
diff. This scares me. It should probably scare you, too:

=======================
[root(3)@dreadnought bin]# svn diff -r 22:23
http://svn.saurik.com/repos/test/hell.txt

subversion/libsvn_ra_dav/util.c:163
svn_error: #21073 : <Name does not refer to a filesystem file>

Attempted to get length of a *non*-file node.
=======================

* finds it surprising that the libsvn_fs API let him accomplish that, hehe *

Sincerely,
Jay Freeman (saurik)
saurik@saurik.com

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Jul 13 02:45:16 2002

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.