Re: Add SVN subset to the main superset

2011-09-29 Thread Andy Levy
On Thu, Sep 29, 2011 at 06:58, rmp8...@googlemail.com
rmp8...@googlemail.com wrote:
 Hi there,
 I like to use SVN for my documents and backup my data. In major I use my
 USB-Stick for this which has a repository, but once a week I want to give
 all the revisions / commits (not only the head) made on the stick to a major
 repository.
 How do I do that?
 --
 In detail:
 I have a major repository on a big external drive. And a latest subset on my
 stick always with me.
 If the stick runs full I delete everything and get the 10 latest revisions:

 svnadmin dump -revision 90:100  Latest.dump (if 100 is the HEAD)
 svnadmin create MyRepository
 svnadmin load MyRepository  Latest.dump

 And I update and commit only on stick for a week (lets say my head-revision
 will be 120 then).
 At weekend I like to give those commits made on the stick to the main
 repository on the external.
 What will be the command for it?

I think Subversion may not be the best fit for your usage. What you
describe is very easy (from that I understand) with a DVCS like Git or
Mercurial - they're basically designed to be used in this way, while
Subversion isn't.

Perhaps a hybrid approach with git-svn?


Re: Add SVN subset to the main superset

2011-09-29 Thread Les Mikesell
On Thu, Sep 29, 2011 at 8:15 AM, rmp8...@googlemail.com
rmp8...@googlemail.com wrote:
 Thanks for your answer!
 Hm ok. SVN is not the best solution but is it impossible by that fact?
 The example is abstract for a bigger problem, so my chief interest lay in
 feasibility and the way how to do it.

I'd expect this to work only in the case where the copied repository
is a strict backup of the one actively used - in which case svnsync is
probably an easier approach to updating the backup copy.   It will
certainly break if any other changes are made directly to the copy and
I don't think you can remove older revisions from your active
instances like you described.

 Otherwise we have to transform much data into Git etc.

git-svn might be a good fit if you don't mind using the git interface
for your work and have room for the local copy.  It can push your
changes back to a central svn repo in a way that can deal with other
concurrent work.

-- 
  Les Mikesell
lesmikes...@gmail.com