svn

Using svnversion with svn:keywords

孤者浪人 提交于 2020-01-10 05:50:27
问题 I'm using Visual SVN on my Windows Box. I have Repository Application , which has Framework as an svn:external. All well and good. When I make a checkout of Application , I'd like to have the version of Application and Framework for inclusion in a footer file. This way I could have something like: Application Version $ApplicationVersion$, Framework Version $FrameworkVersion$ Ordinarily, I understand I could use svn:keywords and add the revision - but as I understand it, svn:keywords apply on

SVN——备份与还原

怎甘沉沦 提交于 2020-01-10 05:49:33
如何把服务器A上的项目移到服务器B上并把项目名字修改了,再把服务器B上面的项目进行还原到SVN上,给大家一个新的路径进行开发项目? 下面就用一个例子来简单讲解一下SVN上的备份与还原,例子中用的是把WMS备份然后还原成WMS1.0。 一、首先做这些工作的前提,当然免不了一些工具的使用了,需要哪些呢? XShell、WinSCP、Xftp、TortoiseSVN 二、备份: svnadmin dump /var/svn/项目名字 >/var/tmp/项目名字.dump 1、先将服务器A上的项目备份在本服务器上: (1)、 将 svn 路径下的WMS版本库 备份到 tmp 路径下,备份之后改名为WMS1.0,生成dump文件: 打开XShell,连接服务器A输入如下备份命令: svnadmin dump /var/svn/WMS >/var/tmp/WMS1.0.dump 2、把刚才在服务器A上备份的dump文件下载本地: 打开WinSCP连接服务器A,找到tmp路径下刚才备份的dump文件,然后将其下载到本地(这里我下载到了D盘) 3、打开Xftp连接服务器B把刚才下载到本地的dump文件移到服务器B上 4、打开WinSCP连接服务器B查看 三、还原: 1、先创建一个新的版本库:打开XShell,连接服务器B创建新的版本库WMS1.0 svnadmin create /var/svn

Eclipse安装svn插件三种方式

安稳与你 提交于 2020-01-10 05:44:35
本人使用第一种方式安装成功,第二种安装的时候没有成功,第三种没有尝试,所以推荐第一种安装方式 1.在线安装: (1).点击 Help --> Install New Software... (2).在弹出的窗口中点击add按钮,输入Name(任意)和Location(插件的URL),点击OK 地址分别是: http://subclipse.tigris.org/update_1.6.x http://subclipse.tigris.org/update_1.8.x (支持的是Subversion 1.7.x) (3).勾选出现的插件内容,一步步安装即可。 注意: 安装过程中假如报下面错误: An error occurred while collecting items to be installed session context was:(profile=epp.package.jee, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=). Problems downloading artifact: org.eclipse.update.feature,edu.umd.cs.findbugs.plugin.eclipse,3.0.1.20150306-5afe4d1.

How do I remove an SVN tag completely that contains spaces?

丶灬走出姿态 提交于 2020-01-10 05:37:25
问题 I tried to clean up the svn repository and remove a tag that contains a space, so all tags and branches are git conform: PROJECT=myproject svnrepo=svn+ssh://rubo77@myserver.de/var/svn-repos/$PROJECT svn rm "$svnrepo/tags/version 3.6.2" but it seems, that doesn't do the job here: How do I convert an svn repo to git using reposurgeon? How do I remove it entirely? 回答1: You have to supply commit log message when you use svn rm to delete the file in remote repository. When doing delete, rename,

Synchronizing Visual SVN with IIS for web development (or to any other folder)

天涯浪子 提交于 2020-01-10 03:23:44
问题 How to get the latest version of the project file to another folder on every commit? I'm using VisualSVN server and I think we can do this on post-commit in hooks, but I don't know how. Server is on Windows. Actually I need to get the latest version of the file to \www folder of IIS7. Simply, get the latest file to another folder. 回答1: I've added following code in post-commit hook (for copying latest version files to D:\Destination ). svn export --force file:///D:/Repositories/myproject D:

What do you use the svn tags directory for anyways?

拟墨画扇 提交于 2020-01-10 02:34:06
问题 Ok so we all know the standard SVN set-up of trunk\ branches\ tags\ And I realize that the recommendation is that tags should have "special" commits in it. I've never really used the tags directory however and I don't see why I ever would. My understanding is that tags\ would contain things like "Version1Release\, Version2Release\, ThatTimeWeUpgradedEverthing\" etc. But here's the thing, if you are going in and need to make a change to the Version1Release then it should be a branch, and if

Linux环境下部署svn服务详解

夙愿已清 提交于 2020-01-09 13:24:11
说明 环境: 操作系统:centos 8.0 IP:39.100.228.13 安装 用ROOT账号登录,在控制台执行以下命令,一直默认安装就好可以了。 [root@localhost ~]#yum install svn 输入svnserve --version 查看安装信息 这里可以看到版本是1.10.2 配置 创建目录和版本库 [root@qinshengfei ~]# mkdir -p /home/svn -p是递归创建多级目录 输入 svnadmin create /home/svn/project 创建版本库 [root@qinshengfei ~]# svnadmin create /home/svn/project 进入/home/svn/project目录,我们可以看到以下几个文件及文件夹: 配置用户访问权限 切换进conf目录 [root@qinshengfei project]#cd conf authz 配置用户、用户组读写权限 passwd配置用户、用户组密码 svnserve.conf配置svn相关服务参数 配置passwd文件 在文件里添加一行shelton=123456,shelton是账号名,123456是密码 配置authz文件 在文件里添加两行: [\] 表示根目录 shelton=rw 设备shelton账号的权限读写 配置svnserve

git clone of git-svn tree?

萝らか妹 提交于 2020-01-09 12:38:06
问题 I've got a 'git-svn' working tree. I'd like to clone a "pure" git repo off this, and then use git push/pull to move changes between the git-svn tree and the git tree, while also using 'git svn dcommit/rebase' to move changes between the git-svn tree and the SVN repo it's based on. This seems to work okay as far as moving things back and forth between the git trees using git methods, but as soon as I interact with the SVN repo in the git-svn tree, things get wonky -- either I get errors when

git clone of git-svn tree?

血红的双手。 提交于 2020-01-09 12:37:10
问题 I've got a 'git-svn' working tree. I'd like to clone a "pure" git repo off this, and then use git push/pull to move changes between the git-svn tree and the git tree, while also using 'git svn dcommit/rebase' to move changes between the git-svn tree and the SVN repo it's based on. This seems to work okay as far as moving things back and forth between the git trees using git methods, but as soon as I interact with the SVN repo in the git-svn tree, things get wonky -- either I get errors when

git clone of git-svn tree?

人走茶凉 提交于 2020-01-09 12:37:04
问题 I've got a 'git-svn' working tree. I'd like to clone a "pure" git repo off this, and then use git push/pull to move changes between the git-svn tree and the git tree, while also using 'git svn dcommit/rebase' to move changes between the git-svn tree and the SVN repo it's based on. This seems to work okay as far as moving things back and forth between the git trees using git methods, but as soon as I interact with the SVN repo in the git-svn tree, things get wonky -- either I get errors when