Bug 41116 - Provide subversion synchronisation functionality
Summary: Provide subversion synchronisation functionality
Status: NEW
Alias: None
Product: Lenya
Classification: Unclassified
Component: Miscellaneous (show other bugs)
Version: Trunk
Hardware: Other other
: P2 enhancement
Target Milestone: 2.0.1
Assignee: Lenya Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-12-06 09:27 UTC by Andreas Hartmann
Modified: 2008-01-04 04:27 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Hartmann 2006-12-06 09:27:17 UTC
It would be nice to synchronize the content automatically with a subversion
repository. This could be done e.g. with a RepositoryListener.
Comment 1 Doug Chestnut 2006-12-06 10:01:34 UTC
Yes, this would be very valuable!  If this became an alternate repo for lenya
(like jsr 170), we could also utilize the versions, properties that svn maintains
Comment 2 Andreas Hartmann 2006-12-06 11:24:07 UTC
(In reply to comment #1)
> If this became an alternate repo for lenya
> (like jsr 170), we could also utilize the versions, properties that svn maintains

That would of course be great, but I think we could start with a simple
synchronization, i.e. commit everything that changes (including the Lenya rcml
files). That would allow to backup and restore the exact state of a website.
Comment 3 Andreas Hartmann 2008-01-03 06:26:37 UTC
ATM every change adds and removes backup files. This makes it a PITA to sync the
content with SVN. Maybe we could add an option to store all backups in a single
file, or at least use non-changing file names (backup-1 .. backup-n)?
Comment 4 J 2008-01-03 06:44:58 UTC
(In reply to comment #3)
> ATM every change adds and removes backup files. This makes it a PITA to sync the
> content with SVN. Maybe we could add an option to store all backups in a single
> file, or at least use non-changing file names (backup-1 .. backup-n)?

i don't think this makes much sense. even if you had persistent unique file
names, *all* old versions would pile up in svn, cluttering your repository in no
time. it is never advisable to pile two different mechanisms on top of one
another that both attempt to do the same yet are agnostic of each other (think
of tunneling tcp/ip over tcp/ip as some VPNs do - two layers of transport
control inevitably mess things up).

we should either make svn our main repository and get rid of backup files
altogether, or discourage using svn on our existing repo.

what you could do if you need to get things done is instruct svn to only pull
the current versions and ignore the backups. that would enable you to get a
reasonably complete revision history in svn, provided you pull more often than
users update, or you are content with snapshots at fixed intervals regardless of
missing the odd update.
Comment 5 Andreas Hartmann 2008-01-03 06:53:42 UTC
(In reply to comment #4)
> (In reply to comment #3)

[...]

> we should either make svn our main repository and get rid of backup files
> altogether,

Implementing that would be overkill for my usage scenario (small company website).

> or discourage using svn on our existing repo.

But SVN is so convenient ...

> what you could do if you need to get things done is instruct svn to only pull
> the current versions and ignore the backups. that would enable you to get a
> reasonably complete revision history in svn, provided you pull more often than
> users update, or you are content with snapshots at fixed intervals regardless of
> missing the odd update.
 
Good idea, I'll give this a try.
Comment 6 Andreas Hartmann 2008-01-04 04:27:46 UTC
BTW, this issue will certainly become important when we start to manage the
Lenya website with Lenya.