To be honest I think you're solving the wrong problem here.
You're making a copy of a repo that you do not have read permission for
J I suppose you won't be allowed to read your mirror too J
Get the policy changed - once they allow you access, even for a short
time, you should have full access. Taking it away afterwards seems just
.. well, stupid. The only other alternative would be to run the svnsync
as a different user that does have permission to read, maybe there's a
backup user or if not, getting the policy changed to introduce a backup
user is often easier than asking for permission for yourself.
From: Andrew Sasak [mailto:andrew.sasak_at_gmail.com]
Sent: Thursday, May 14, 2009 7:06 PM
Subject: svnsync and changing permissions
I recently started use svnsync to maintain a mirror of a repository
where I do not have read permission for everything. Occasionally new
subdirectories are added to the repository and if necessary I am granted
read access. Since access is usually granted *after* the directory is
created, it throws svnsync for a loop.
Apart from changing the policy regarding how access/permission is
granted, how can I solve this problem?
It seems like I could dump from my mirror up until the creation of the
directory, then recreate the mirror using the dumpfile and sync.
However, I'm not sure if this work because it seems like the mirror uses
rev 0 to keep track of the most recently synced revision. In the case of
access being granted several (hundred or thousand) revisions after the
directory being added, even if this worked it seems like there should be
a more efficient way to do this, although its probably not currently
implemented (like "resyncing" starting at a specified revision).
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-05-15 10:37:17 CEST