svn

Can I use Regular expression in svndumpfilter include statement?

我的未来我决定 提交于 2020-01-15 05:23:13
问题 I need to export data from svn (server on Windows), but i don't want to include root directory. Example: svn -project1 --trunk --branches -project2 --trunk --branches --onemorefolder I want to include to project1.dump folders: trunk and branches (not project1) I use: svnadmin dump /svn/ | svndumpfilter include --drop-empty-revs --renumber-revs /project1/trunk /project1/branches | sed "s/Node-path:[ ]project1\//Node-path: /g" -b | sed "s/Node-copyfrom-path:[ ]project1\//Node-copyfrom-path: /g"

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

linux 安装 svn

蓝咒 提交于 2020-01-15 04:40:18
1. 安装SVN服务器: 检查是否已安装 # rpm -qa subversion 安装SVN服务器 # yum - y install subversion 查看版本 # svnserve --version 2. 代码库创建: 安装完成后要建立SVN库 # mkdir -p /home/svn/repositories # svnadmin create /home/svn/repositories 3. 配置版本库: 进入上面conf文件夹下,进行配置: a. 用户密码passwd配置: # vi + passwd //+表示光标放在文件最低端 修改passwd为一下内容: [users] # harry = harryssecret # sally = sallyssecret lxq=123456 b. 权限控制authz配置: # vi + authz 设置哪些用户可以访问哪些目录,向authz文件追加以下内容: [/] lxq=rw //给该用户访问所有库的权限 或 [repositories:/project] //repository库的根目录权限 lxq=rw / 表示根目录及以下,根目录是svnserve启动时指定的,我们指定的是/opt/svn;/ 就是指对全部版本库都具有权限 repositories:/ 表示对库repositories的根目录设置权限

svn:怎样批量删除.svn文件

允我心安 提交于 2020-01-15 04:27:31
怎样批量删除.svn文件 使用SVN工具的时候会生成一些以“svn”作为后缀的文件,而且每个文件夹下都有,如果想删除这些.svn文件夹,通过手动删除的渠道是很繁琐的事情。 通过以下的简单步骤可以在右键菜单集成“Delete SVN Folders”选项,方便实用。 步骤/方法 在记事本输入以下代码: Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\DeleteSVN] @="Delete SVN Folders" [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\DeleteSVN\command] @="cmd.exe /c \"TITLE Removing SVN Folders in %1 && COLOR 9A && FOR /r \"%1\" %%f IN (.svn) DO RD /s /q \"%%f\" \"" 保存为以.reg作为扩展名的文件,双击此reg文件导入注册表。导入后,在需要删除.svn文件的时候,右键点击此文件夹,会在关联菜单看到“Delete SVN Folders”选项,执行即可迅速删除该文件夹下的所有.svn文件。 来源: https://www.cnblogs.com

Is it useful to have versioning information like history log and file ID on the source file?

送分小仙女□ 提交于 2020-01-15 03:29:08
问题 I know that they provide a quick reference, but as the code grows they can lead to hundreds of files changing just due to version/history updates. This leads/relates to my other question: Is there a way to prevent code comments to be marked as changes in the diffs obtained from version control? (CVS/SVN) 回答1: Keep the version/history info in the version control. That's what it's good at. Version/history info in the source file is only useful for people that read the source code without having

批量删除svn标志

时光毁灭记忆、已成空白 提交于 2020-01-15 02:22:55
只是清理.svn目录的话,当然可以通过SVN工具自带的导出功能。记录下主要还是这个批处理可以遍历所有目录中的特定文件夹。 程序代码如下: @echo off :start ::启动过程,切换目录 set pwd=%cd% cd %1 echo 工作目录是:& chdir :input ::获取输入,根据输入进行处理 set source=: set /p source=确定要清楚当前目录下的svn信息吗?[Y/N/Q] set "source=%source:"=%" if "%source%"=="y" goto clean if "%source%"=="Y" goto clean if "%source%"=="n" goto noclean if "%source%"=="N" goto noclean if "%source%"=="q" goto end if "%source%"=="Q" goto end goto input :clean ::主处理过程,执行清理工作 @echo on @for /d /r %%c in (.svn) do @if exist %%c ( rd /s /q %%c & echo 删除目录%%c) @echo off echo "当前目录下的svn信息已清除" goto end :noclean ::分支过程,取消清理工作 echo

快速去掉.SVN文件夹

ぐ巨炮叔叔 提交于 2020-01-15 01:14:14
来源: http://yanguz123.iteye.com/blog/1681562 我们在工程的协作开发过程中,常用的是 svn , 有时我们需要一个干净的 网站版本,没有 .svn 这些文件夹记录的版本传到服务器上使用,自己一个个去文件删除的话也太累了,这时我们就用到以下功能,用cmd 批处理一键删除这些文件夹 可以写到注册表里,以后自己想清理哪个文件夹就直接 右键 -> 清除 .SVN文件夹 就可以了 Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\清除SVN信息] @="清除 .SVN文件夹" [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\清除SVN信息\command] @="cmd.exe /c \"TITLE 清除 %1 中的.SVN文件夹 && FOR /r \"%1\" %%f IN (.svn) DO RD /s /q \"%%f\" \"" 将以上代码保存为 cleanSVN.reg ,在 Windows 环境下运行,然后在你要清理的文件夹上右键,就可以看到命令菜单, 不足的是这里没有 一个确认的提示信息,如果你有兴趣就加上一个提示信息吧,以免误清理,有时间我再加上吧

取消本地SVN文件夹与服务器的关联

。_饼干妹妹 提交于 2020-01-15 01:14:03
方法一. 1.新建文本文档,添加内容如下: Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\DeleteSVN] @="Remove SVN Link" [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\DeleteSVN\command] @="cmd.exe /c \"TITLE Removing SVN Folders in %1 && COLOR 9A && FOR /r \"%1\" %%f IN (.svn) DO RD /s /q \"%%f\" \"" 2.文件名改为.reg文件并双击运行一下 3.右键需要取消关联的文件夹,能看到“Remove SVN Link”的字样,点击即可取消关联 方法二. 目录中找到.svn打的文件删除即可 来源: https://www.cnblogs.com/luqiang213917/p/9232683.html

How can a mobile student effectively use Dropbox with a source control system?

雨燕双飞 提交于 2020-01-14 22:47:43
问题 I got a laptop in preparation for the coming semester, which will see me taking a university programming course while working full time. I will, of course, be using a source control system (probably Subversion) and had the idea of creating my repositories in my Dropbox folder, which would enable me to check out and work on code locally using my laptop or my desktop (or, indeed, any other computer that can access the Internet), and then commit it back to the shared Dropbox repository. Any

MonoDevelop - using Subversion 1.7 on a Mac

烂漫一生 提交于 2020-01-14 18:05:12
问题 I have homebrew installed, and was able to upgrade subversion to 1.7 using it (and moving /usr/local/bin ahead of /usr/bin in my PATH). So if I type: svn help Subversion command-line client, version 1.7.6. The problem is MonoDevelop doesn't seem to use the svn in the PATH, because svn 1.7 repos don't appear to be versioned in MonoDevelop. I need 1.7 because I also use a VM with Windows and I share repos between the host and guest. On Windows I used TortoiseSVN/AnkhSvn which target subversion