[Ilugc] recommendation for CVS replacement

  • From: bhuvan@xxxxxxxxxx (Bhuvaneswaran)
  • Date: Mon Aug 7 19:06:52 2006

I fear that at some point in the future, I'll fail to run "svn propset ..." on
some file and break things in weired and wonderful ways.

Is there some way svn can automatically pickup file mode, user and
group information on evey commit?  Ofcourse, svn also needs to
automatically apply them on a checkout.  Or do I need to handle
them through the hooks?

I understand, the requirement is specific to your WC. So, you may not be able to
run the pre-hook scripts from the repository. I see two things to do here:

1) Automate the process of setting these arbitrary properties for a file
2) Incorporate these changes when you commit

Solutions:

1) I guess, the way to go is to write a custom script to set these
properties for a file using propset command
2) You can set an alias for 'commit' (if it's ok) to run the custom
script and invoke the actual 'svn commit' command

Since, your requirement seem to be specific to your WC and no one else
may be interested to have this setup, i guess it would fit in your
need. If others do, set the alias for them as well!
-- 
Regards,
Bhuvaneswaran
www.symonds.net/~bhuvan/
GPG: 0x7A13E5B0

Other related posts: