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

Re: commit parent-dir from child-dir

From: Regner Trampedach <art_at_mso.anu.edu.au>
Date: 2006-09-08 06:10:47 CEST

Dear Jeremy Pereira

Yes, using
     svn commit -m "some message" ..
works and that is exactly what I want it to do - but I need it
done *automatically*. When people do 'svn status/diff/update/commit'
they are bound to forget to include the '..'.
  Is there a way to set-up some configuration in the child-dirs
so that svn is invoked from the parent-dir per default, or can/should
this be done via hook-scripts? I also need tp make sure that svn
manually invoked from the parent-dir doesn't go back up *it's* parent
directory.
  This would save my project from a lot of headaches and mistakes.

     Thanks

       Regner Trampedach

On 7 Sep 2006, at 10:36, Jeremy Pereira wrote:
>
> On 7 Sep 2006, at 09:06, Regner Trampedach wrote:
>
> > Dear SVN user-mailing-list
> >
> > I have a directory structure as this:
> >
> > parent --> child1
> > --> child2
> > --> child3
> >
> > The repository was created with:
> > svnadmin create [path-to-repos]/parent
> > svn import [path-to-parent]/parent file://[path-to-repos]/parent
> > -m [comment]
> > svn checkout file://[path-to-repos]/parent [path-to-WC]/parent
> >
> > Now both the parent and the "children" are SVN-directories, each with
> > a .svn directory inside (on UNIX/Linux).
> >
> > Q: Can I change the default behaviour of svn so that it acts on
> > "parent" even when invoked from a "child"?
>
> I don't know if this is what you want, but svn seems to understand
> what ".." means i.e.
>
> svn commit -m "some message" ..
>
> will operate on the parent directory of the one you are in.
>
> >
> > Motivation: I have files linked between the different "children"
> > so that I can share files and keep consistency. Now, if I work
> > on child2 and change fileA which is linked from child1, then
> > svn won't see any changes from child2 as the *link* is unchanged.
> > I will need to go to parent or child1 to see and commit the
> > change. This might seem a small inconvenience, but I'm more
> > concerned about ensuring consistency and that other people
> > working on this project don't loose their updates.
> >
> > I have read the svn-book closely and haven't found anything
> > applicable - and using externals for the common files won't work
> > for me either since changes to the external part would have to
> > be committed separately. A bit cumbersome for my situation.
> >
> > Thanks
> >
> > Regner
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> > For additional commands, e-mail: users-help@subversion.tigris.org
> >
> >
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Sep 8 07:03:24 2006

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

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