« 2025年12月 | (回到Blog入口)

2026年01月 归档

2026年01月07日

迁移SF上的项目:从cvs到git

根据SF官方文档的介绍:
https://sourceforge.net/p/forge/documentation/CVS/
把CVS项目转换到git需要用cvs2svn项目中的cvs2git,但实际上这个需要Python2 而自己的MacBook上已经都是python3了:
会遇到错误信息:

brew install cvs2svn
Warning: No available formula with the name "cvs2svn".
==> Searching for similarly named formulae and casks...
Error: No formulae or casks found for cvs2svn.

install cvs2svn Defaulting to user installation because normal site-packages is not writeable ERROR: Could not find a version that satisfies the requirement cvs2svn (from versions: none) ERROR: No matching distribution found for cvs2svn


错误: cvs2git 无法运行
请检查 Python 3 是否已安装: python3 --version

ERROR: cvs2git requires Python 2, version 2.4 or later; it does not
work with Python 3. You are currently using version 3.14.2.
Please restart cvs2git using a different version of the Python
interpreter. Visit http://www.python.org or consult your local system
administrator if you need help.

好在找到了cvs-fast-export项目,用Claude重新生成了迁移脚本:

按此阅读全文 "迁移SF上的项目:从cvs到git" »

关于 2026年01月

此页面包含了在2026年01月发表于车东[Blog^2]的所有日记,它们从老到新列出。

前一个存档 2025年12月

更多信息可在 主索引 页和 归档 页看到。

Creative Commons License
此 Blog 中的日记遵循以下授权 Creative Commons(创作共用)授权.
Powered by
Movable Type 3.36