SVN update to stable from git?

who is maintaining SVN?
goal:
Bash:
svn checkout https://svn.freebsd.org/base/stable/14 /usr/src

but https://svn.freebsd.org/base/stable/ stops at:
yeah i could get the code with
Bash:
git clone https://git.freebsd.org/src.git /usr/src
cd /usr/src
git checkout stable/13

git clone https://git.freebsd.org/src.git /usr/src
cd /usr/src
git checkout stable/14


i ask who is maintaining it to ask if they could do something like
Bash:
git svn init --prefix=svn/ https://svn.freebsd.org/base
git svn fetch


git checkout -b stable/13 origin/stable/13
git svn dcommit



git svn init --prefix=svn/ https://svn.freebsd.org/base
git svn fetch


git checkout -b stable/14 origin/stable/14
git svn dcommit


and if you want to set this up to be automated with a rolling head master/main that would be even more cool

something like sync_git_to_svn.sh
Bash:
#!/bin/bash


# Define the directory where the Git repository is cloned
GIT_REPO_PATH="/path/to/local/git-repo"


# Navigate to the Git repository
cd $GIT_REPO_PATH || exit


# Fetch the latest changes from the Git repository
git fetch origin


# Checkout the main branch and pull the latest changes
git checkout main
git pull origin main


# Rebase the SVN repository and commit the changes
git svn rebase
git svn dcommit


# Log the update time
echo "Sync completed at $(date)" >> /path/to/log/sync_log.txt

Bash:
chmod +x /path/to/sync_git_to_svn.sh
(crontab -l; echo "0 0 * * * /path/to/sync_git_to_svn.sh") | crontab -
 
i ask who is maintaining it to ask if they could do something like
You can ask but I'm fairly certain the answer will be no.

 
You can ask but I'm fairly certain the answer will be no.

Thanks!
i'm figuring out git, now.

1722409027674.png
 
Please don't post pictures of text. Just copy/paste the text, preferably in a [code]....[/code] block.


Note the various branches for the different versions of FreeBSD.

13.3-RELEASE -> releng/13.3
14.1-RELEASE -> releng/14.1
13-STABLE -> stable/13
14-STABLE -> stable/14
-CURRENT -> main

Keep in mind that -CURRENT is an unsupported development version. -STABLE is a supported development version.

 
I understand current -> main is the bleeding edge and might sometimes break.

Thank you for the warning and i will do better about more code blocks and less pictures
 
Back
Top