Hi,

Von: Les Mikesell [mailto:lesmikes...@gmail.com]
> 
> On Sat, Aug 10, 2013 at 5:25 PM, Daniel Shahaf <danie...@elego.de> wrote:
> >
> >> It would have been nice if --incremental would automatically upgrade
> >> the target repository (and fallback to a full backup) if the versions
> >> mismatch.
> >
> > Hmm.  Interesting idea, but replacing failure modes with automagical
> > behaviour is generally looked at with skepticism (is this error
> > _really_ always safe to not tell the admin about?).  For the sake of
> > argument, why shouldn't admins who want this behaviour opt-in to it by
> > having their scripts do
> >
> >     svnadmin upgrade $dest
> >     svnadmin hotcopy --incremental $src $dest
> >
> > ?  (Note that 'upgrade' is idempotent, and will exit without error for
> > already-most-recent-format repositories.)
> 
> Which case is worse for an unattended script?   Leaving you with no
> backups or one that needs a newer program to be able to use?  And which case
> might an early user of subversion have been trained to expect?

I'd oppose auto-upgrading the destination repository to whatever toolchain 
version one happens to use - what happens when the source repository was not 
yet upgraded? Or it was upgraded from 1.5 format to 1.6 format, while the 
hotcopy is executing using 1.8?

However, I'd be fine with "svnadmin hotcopy" automatically falling back to a 
full copy (or do whatever else is necessary to create a backup) when the 
destination has a different version than the source repository, maybe guarded 
by an extra --allow-upgrades command line parameter.

Best regards

Markus Schaber

CODESYS(r) a trademark of 3S-Smart Software Solutions GmbH

Inspiring Automation Solutions

3S-Smart Software Solutions GmbH
Dipl.-Inf. Markus Schaber | Product Development Core Technology
Memminger Str. 151 | 87439 Kempten | Germany
Tel. +49-831-54031-979 | Fax +49-831-54031-50

E-Mail: m.scha...@codesys.com | Web: http://www.codesys.com | CODESYS store: 
http://store.codesys.com
CODESYS forum: http://forum.codesys.com

Managing Directors: Dipl.Inf. Dieter Hess, Dipl.Inf. Manfred Werner | Trade 
register: Kempten HRB 6186 | Tax ID No.: DE 167014915

Reply via email to