我经常有基于svn的项目,包括第三方组件,如TinyMCE(浏览器中的WYSIWYG)编辑器。 这包括几十个文件夹,可能包含数百个文件。
理想情况下,当我想将TinyMCE更新到最新版本时,我希望能够将顶级TinyMCE文件夹复制到我的工作副本中,提交更改并离开。
显然,这不起作用,因为通过复制顶部我将擦除通过工作副本嵌套的所有现有.svn文件夹。
手动更新所有文件需要数小时。
有没有一个很好的方法来管理这个与svn?
或者,是否有任何工具(在Linux或OS X上)可以帮助我更轻松地执行“手动”复制?
I frequently have svn-based projects that include third-party components such as the TinyMCE (in-browser WYSIWYG) editor. This includes dozens of folders with possibly hundreds of files.
Ideally, when I want to update TinyMCE to the newest release, I'd like to be able to copy the top-level TinyMCE folder into my working copy, commit the changes and away I go.
Obviously, this won't work because by copying over the top I'd be wiping out all the existing .svn folders nested through the working copy.
Updating all the files by hand would take hours.
Is there a good way to manage this with svn?
Alternatively, are there any tools (on linux or OS X) that would help me perform the 'manual' copy more easily?
最满意答案
我不明白“显然,这不会起作用,因为通过复制顶部,我将消除通过工作副本嵌套的所有现有.svn文件夹。” 您使用的是哪种操作系统?
我为我的SVN服务器和Windows机器使用Linux Web服务器进行工作。 没有“甩掉”.svn文件夹这样的东西:你只是将文件复制到签出目录,因为它们被更改,我只是使用TortoiseSVN提交它们。
这不是保持结构的“最佳方式”。 但它的确有效。
磁盘空间通常不是问题,因此您通常可以创建第三方应用程序的存储库,因此您不依赖于Internet访问来构建/部署您的应用程序。
svnrepositories myprojects myprojet third-party tinymce 1.3他们使用svn:externals属性,就像BrianLy所指出的那样 。
你可以指出互联网上的外部资源。 但请记住,缺点是资源可能处于脱机状态,您需要访问Internet。
I didn't understand "Obviously, this won't work because by copying over the top I'd be wiping out all the existing .svn folders nested through the working copy.". Which OS are you using?
I use a Linux Web Server for my SVN Server and a Windows machine for work. There's not such thing as "wipping out" .svn folders: you just copy the files to the the checked out directory, and since they are changed, I just commit them using TortoiseSVN.
This is not the "best way" of keeping your structure. But it works.
Disk space is usually not a concern, so you can usually create a repository of third party applications, so you don't depend on internet access to just build/deploy your application.
svnrepositories myprojects myprojet third-party tinymce 1.3And them, use the svn:externals property, like pointed out by BrianLy.
You can just point out to the external resource on the internet. But remember that the disadvantage is that the resource can be offline and you need internet access.
更多推荐
发布评论