如何使用Gofer将Monticello软件包复制到另一个名称下的存储库

aka*_*ice 10 smalltalk squeak pharo monticello

上下文是这样的:
一个包在几个存储库中开发了几个分支

  • squeaksource
  • source.squeak.org/trunk

发展停止source.squeak.org,其目标是到分支,以便有发表在一个库中的所有版本转回squeaksource.
但为了方便人们浏览和快速识别分支,我希望在squeaksource副本的名称中添加标准分支标识.
有没有办法自动化这项操作?可能还有Gofer?

Luk*_*gli 7

蒙蒂塞洛包是不可改变的.您可以轻松移动版本,但不应重命名文件.如果这样做,则会破坏历史记录,并且无法合并版本树中的版本以及其他人的贡献.

要将包A的所有版本从源URL移动目标URL,您可以使用:

Gofer new
   repository: 'source url';
   package: 'A';
   fetch

" If you understand the concequences you could rename/rebranch the version files in your package-cache at this point. "

Gofer new
   repository: 'target url';
   package: 'A';
   push
Run Code Online (Sandbox Code Playgroud)