scons 支持 subversion checkout 吗? [英] Does scons support subversion checkout?

查看:64
本文介绍了scons 支持 subversion checkout 吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从某些站点看来,Scons 支持 subversion checkout:

<预><代码>环境 = 环境()env.SourceCode('.', env.Subversion('XXX'))env.Program('hello.c')

http://www.scons.org/doc/0.92/HTML/scons-user/x1625.html

但是从最新稳定版本(2.0.0)的手册页/用户指南中没有subversion.更改日志中没有提到它.所以我想知道发生了什么.

解决方案

从表面上看,源代码在 2.0 中已被弃用.最近关于弃用的讨论很少.2.0 的发行说明说:

<块引用>
  • SourceCode() 函数及其关联的工厂函数已开始弃用周期,可以启用警告.

ChangeLog 也简要提及:

<块引用>
  • 开始弃用 SourceCode() 和相关工厂

在邮件列表中挖掘发现有一项民意调查2008 年 10 月.弃用的原因似乎是 SourceCode() 给代码库增加了很大的复杂性,在野外没有太多使用,除了传统 RCS 和 SCCS 之外没有很好的支持,有缺陷的 Subversion 支持,通常不值得保留.

大多数对民意调查的回复都说我不使用这个功能",偶尔会有是的,它有问题"或你为什么要把源代码控制和构建系统混在一起?".

From some sites it seems Scons support subversion checkout:


env = Environment()
env.SourceCode('.', env.Subversion('XXX'))
env.Program('hello.c')

http://www.scons.org/doc/0.92/HTML/scons-user/x1625.html

But from the man page/user guide of the latest stable version(2.0.0) there is no subversion. It's not mentioned in the change log. So I am wondering what is going on.

解决方案

From the looks of things, SourceCode has been deprecated in 2.0. There has been very little discussion about the deprecation recently. The release note for 2.0 says:

  • The SourceCode() function and its associated factory functions have started their deprecation cycle and can have a warning enabled.

And the ChangeLog also mentions it briefly:

  • Start deprecation cycle for SourceCode() and related factories

Digging in the mailing list reveals that there was a poll in October 2008. The reason for the deprecation seems to have been that SourceCode() added a great deal of complexity to the codebase, was not used much in the wild, did not support anything other than legacy RCS and SCCS very well, had buggy Subversion support, and was generally not worth keeping around.

Most replies to the poll said "I don't use this feature", with the occasional "yes it is buggy" or "why would you mix the source code control and the build system anyway?".

这篇关于scons 支持 subversion checkout 吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆