Does scons support subversion checkout?

我们两清 提交于 2020-01-15 05:21:10

问题


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.


回答1:


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?".



来源:https://stackoverflow.com/questions/3278832/does-scons-support-subversion-checkout

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!