Subversion on FreeBSD 13 Alpha 2

I had FreeBSD 12.1 that I was able to update with subversion. With FreeBSD 13.0-alpha 2 I went to follow the internet tutorials and deleted /usr/src and I can't find how to use subversion and be able to apply the command svn update /usr/src.
 
FreeBSD now uses git. Not sure which tutorials you followed but the command for alpha would be
git clone -b stable/13 --depth 1 https://git.freebsd.org/src.git src

That's assuming you are in /usr and src has been emptied.

To update after that you can just cd into the /usr/src directory and run
git pull

I have a page going over the basics with some links to other sources.

When 13 becomes releng, it will then be git clone -b releng/13 --depth 1 https://git.freebsd.org/src.git src

There's a long thread, full of people getting sidetracked in arguing about git and github but if you have patience you can see some more git examples. Warner Losh also has a git primer, though I feel it could be clearer to newcomers, but then again, I'm pretty dumb.

User vigole has put together a nice page of links.
https://forums.freebsd.org/threads/freebsd-git-and-github-tutorials-links.77242/

User olli has a post in that thread about using subversion to get the source
 
If you're not that versed with git you might want to try net/gitup. It's really easy to use, has no dependencies and doesn't require knowledge of git.
 
I've added a quick note about gitup to my page. Note that its default config right now (late March, 2021) will pull in 11.4. for release. But if you look at the /usr/local/etc/gitup.conf, it's easy to see what has to be changed. For example, to get 13.0 you just find the line
Code:
"branch"     : "releng/11.4",
and change the 11.4 to 13.0. (It's at line number 36 in my file). Then the command is just
gitup release
and the config file already has the source you're cloning and a default destination of /usr/src. Other options, instead of release, such as current or stable, are shown in the configuration file.
 
Back
Top