Is there a mercurial or git repository to download FreeBSD sources?

funky

Member

Reaction score: 12
Messages: 41

mamalos said:
...instead of using cvsup or svn?
If you want the source to be in a git repository, you could use git-svn:
Code:
$ cd /usr/src/
$ git svn init svn://svn.freebsd.org/base/stable/9
$ git svn fetch -rXXXXXX
where the option -rXXXXXX tells git-svn to fetch the complete history beginning from revision XXXXXX, the current revision of /base/stable/9 is 240670 (so, don't set this value to small, otherwise the initial fetch will take forever). You can then subsequently update the repository with the git-svn analog to svn update:
Code:
$ git svn rebase
 
OP
M

mamalos

Well-Known Member

Reaction score: 51
Messages: 446

Thanx all for your answers,

@funky, apart from devel/svn2git (which is the port that I suppose you are talking about), there is a similar port for mercurial as well, devel/hgsvn.

Thanx again!
 
Top