On Wed, 08 Jan 2025 12:10:33 +0100, Bo Berglund <bo.bergl...@gmail.com> wrote:

>Regarding repository names, are they stored anywhere internally in the repo or
>is it just the top level directory name?
>
>If it is "just a name" then I should be able to rename the existing mirror dir
>and then create a new "pc" repo destined to be set to become a synced repo
>according to the directions in the svnbook.
>And then presumably the sync will go from there.
>

Semantic question:
When I talk about repositories I mean the directories *below* /var/lib/svn/

These dirs (each serve different purposes) each is a subversion repository,
right?
So these are the repositories.
like:

/var/lib/svn----private
             |--pc
             |--marketing
             |--engineering
             |--sales
             |--cad
             |--doc
etc...

And what I want to do is rename the directory pc to pcold, then create a new
repository named pc. Which creates and populates a new pc dir.

According to the svnbook it is done like this:

svnadmin create /var/svn/svn-mirror

(where the path in my case is: /var/lib/svn/pc)

But svnadmin create /var/lib/svn/pc throws a *permission error* and when I use
sudo to do it then the new dir with files and subdirs are owned by root:root!

So I had to change owner:group to www-data:www-data recursively for the new dir
pc and its content...

Obviously I am not doing this correctly...

Do I have to be a member of the www-data group? Right now:

$ groups
bosse adm cdrom sudo dip plugdev lxd sambashare lpadmin nut
(no www-data)


The Linux server I am using has Apache SVN installed and that is what gives the
https: connectivity.

And if I use my Windows PC browser and go to the svn link I can access the pc
dir but it is empty and on revision 0. (as expected)
(The renamed repo pcold is also available via the browser...)

But I am on an ssh terminal logged on as myself (a sudoer) (using PuTTY on
Windows) when I manipulate the Linux server..

The problems continue on like this when I start creating the hook scripts as
links to the existing scripts, so I had to stop and ask for advice...

Where can I find a howto that is used with Apache SVN to do the sync config
properly?

Right now I have this:

$ ll /var/lib/svn/pc
total 32
drwxr-xr-x  6 www-data www-data 4096 2025-01-08 13:50 .
drwxr-xr-x 16 root     root     4096 2025-01-08 13:50 ..
drwxr-xr-x  2 www-data www-data 4096 2025-01-08 13:50 conf
drwxr-sr-x  6 www-data www-data 4096 2025-01-08 13:50 db
-r--r--r--  1 www-data www-data    2 2025-01-08 13:50 format
drwxr-xr-x  2 www-data www-data 4096 2025-01-08 14:13 hooks
drwxr-xr-x  2 www-data www-data 4096 2025-01-08 13:50 locks
-rw-r--r--  1 www-data www-data  246 2025-01-08 13:50 README.txt

and

$ ll /var/lib/svn/pc/hooks
total 52
drwxr-xr-x 2 www-data www-data 4096 2025-01-08 14:13 .
drwxr-xr-x 6 www-data www-data 4096 2025-01-08 13:50 ..
-rwxr-xr-x 1 www-data www-data 2634 2025-01-08 13:50 post-commit.tmpl
-rwxr-xr-x 1 www-data www-data 2773 2025-01-08 13:50 post-lock.tmpl
-rwxr-xr-x 1 www-data www-data 2994 2025-01-08 13:50 post-revprop-change.tmpl
-rwxr-xr-x 1 www-data www-data 2605 2025-01-08 13:50 post-unlock.tmpl
-rwxr-xr-x 1 www-data www-data 4038 2025-01-08 13:50 pre-commit.tmpl
-rwxr-xr-x 1 www-data www-data 3621 2025-01-08 13:50 pre-lock.tmpl
-rwxr-xr-x 1 www-data www-data  562 2025-01-08 14:12 pre-revprop-change <==Local
-rwxr-xr-x 1 www-data www-data 3469 2025-01-08 13:50 pre-revprop-change.tmpl
-rwxr-xr-x 1 www-data www-data 3309 2025-01-08 13:50 pre-unlock.tmpl
-rwxr-xr-x 1 www-data www-data  521 2025-01-08 14:13 start-commit <==Local
-rwxr-xr-x 1 www-data www-data 3754 2025-01-08 13:50 start-commit.tmpl

TIA


-- 
Bo Berglund
Developer in Sweden

Reply via email to