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

Re: Cannot commit multiple paths

From: Hans Salvisberg <svn.users_at_salvisberg.com>
Date: 2006-11-18 15:36:51 CET

Thank you for your reply, Troy!

Troy Curtis Jr wrote:
> On 11/16/06, svn.users@salvisberg.com <svn.users@salvisberg.com> wrote:
>> Hans Salvisberg wrote:
>> > Often, when I try to commit multiple paths, svn comes back with
>> > nothing but an unhelpful "Aborted". What could be the reason for this?
>> No ideas, anyone? Maybe it makes a difference that my "working copy"
>> is the root of the file system? Right now, I'd like do this:
>> # svn ci /aquota.group /aquota.user /etc/init.d/vzquota
>> Aborted
>> It could be that multiple paths work if they're in the same subtree.
>> Could this be a bug in svn 1.4.2 (r22196)? Unfortunately, I don't have
>> a spare file system to try this out...
> Do you mean that your root filesystem is one large working copy? like
> you did a svn co <URL> / (obviously you had to do it from another
> disk first correct?)? I think that information would be helpful.

Yes, exactly. Actually, the repository lives inside the same file system, but it's excluded from the working copy. I've created and fine-tuned a shell script to create the repository that goes along these lines (only much longer):

  svnadmin create /var/.repos
  svn co file:///var/.repos /
  svn pe svn:ignore / --editor-command "tee" <<EOS
               (and so on...)

  svn add /var -N
  svn pe svn:ignore /var --editor-command "tee" <<EOS
               (and more...)
  svn add /var --force
               (more excludes, also on lower levels...)
  svn add / --force

I had to experiment quite a bit to find all the necessary excludes, but now it works like a charm, and an

  svn st /

is extremely fast (a few seconds at most, usually it's instantaneous). So, my "working copy" is not a working copy in the traditional sense, but I'm using svn to monitor, log, and document changes on a server.

Back to my problem -- this works:

  svn ci /var/foo /var/bar

but these fail with "Aborted":

  svn ci /var/foo /usr/bar
  svn ci /var/foo /bar
  svn ci /foo /bar

Apparently, svn looks for the common ancestor of the given paths, and if that ancestor happens to be / (root), then svn fails.


To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sat Nov 18 15:37:29 2006

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