cvs

DVCS how structure with large integrated code base, with multiple projects sharing much common code?

二次信任 提交于 2020-01-10 05:11:09
问题 I have a cvs repository, with mostly java code. Each package sits in it's own top level dir, like so, with the sourced laid out in typical java fashion. $CVSROOT/my.domain.module1/src/my/domain/module1 $CVSROOT/my.domain.module2/src/my.domain/module2 $CVSROOT/my.domain.share1/src/my/domain/share1 This means we can write build scripts that can easily pull any combination of packages out of the repository in order to build a particular shippable piece of software. So if I checked out my.domain

一键删除.svn文件bat脚本

百般思念 提交于 2020-01-08 07:17:16
用过SVN或CVS版本控制工具的朋友,在享受着它们给我们带来的方便的同时,也许也在为这么一件事情苦恼: 如果某个目录在SVN或CVS版本控制工具的控制之下时。该目录下以及该子孙目录下都会有一个.svn目录或CVS目录。当我们想让该目录脱离版本控制工具控制时,想删除这些.svn目录或CVS目录。一个一个手动删除吗?目录树大了呢?有成百上千个分支目录也要手动删除吗? NO。有更简便的方法,即可实现一键删除。操作步骤如下: 步骤一、编写注册表脚本 新建一个文本文件,把下面的代码COPY进去,保存为delSVNorCVS.reg. Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\DeleteCVSOrSVN] @="Delete CVS/SVN Folders" [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\DeleteCVSOrSVN\command] @="cmd.exe /c \"TITLE Removing CVS/SVN Folders in %1 && COLOR 9A && FOR /r \"%1\" %%f IN (.svn,CVS) DO RD /s /q \"%%f\" \"" 步骤二

cvs update error

早过忘川 提交于 2020-01-04 02:35:27
问题 I am using WinCVS and when i try to update a module i keep getting this error cvs [update aborted]: reading from server: error -1 What is the actual problem here and how to resolve this? 回答1: I had this and similar problems, resolved by trying variations on my CVSROOT pserver string, to include username@hostname/cvs. Also cvs logout then login again. Don't know exactly why it worked since they should be equivalent. 回答2: Your anti-virus/firewall may be the problem here. Disable/Uninstall them

Show CVS annotations by default in Eclipse

﹥>﹥吖頭↗ 提交于 2020-01-03 18:49:09
问题 In Eclipse you can show CVS annotations (which user changed which line in which commit) for a file by choosing Team->Show annotations... from it's context menu. However, I want to enable this for all files in my CVS projects by default. Is there a way to do so? 回答1: Short answer: no. Unfortunately not. This is not a preference. 回答2: Found the same problem in svn in eclipse. To avoid clicking, which is slow, I set a hotkey for show annotations. It is not the full solution but faster than

migrating data from VSS to SVN

陌路散爱 提交于 2020-01-03 15:37:28
问题 How do i migrate my data from VSS to SubVersion?? 回答1: It depends on whether you want to take the VSS Meta Data with you. If yes, have a look at PowerAdmin or Vss2SVN on Tigris If no, just to a search of the Code Folders on your machine to remove all .scc & .vss files and then dump that code into your SVN Repo in the standard way. EDIT: Looks like Vss2SVN Development on Tigris has been parked. 回答2: there's a better migration tool on Codeplex, called (imaginatively) VSS2SVN. It works very well

Eclipse CVS file compare

我的未来我决定 提交于 2020-01-02 12:19:31
问题 When I compare two identical files one from my eclipse workspace and one from repository eclipse compare editor shows differences all over the file. It even shows the tab characters in the differences. Is there any setting that will tell editor to ignore the tab characters? 回答1: You can interactivly influence the whitespace comparison in the compare view from the context menu of the view in Eclipse Helios. 回答2: We actually encountered this yesterday on my development team. From the Window |

How to check out a CVS branch point?

与世无争的帅哥 提交于 2020-01-02 03:30:13
问题 First, I have to admit I screwed up a little with CVS. I had a release tag releaseX , which was done some time back (i.e., not HEAD). Then I decided I need a maintenance branch at that point. Instead of creating a branch tag ( branchX ) in addition to releaseX , I deleted the release tag and created a branch tag (erroneously) named releaseX . I then proceeded to work on that maintenance branch, and created releaseX1 , releaseX2 etc. My problem: when I check out releaseX , I get the branch

CVS: How to get the date when a tag is created?

北城以北 提交于 2020-01-01 09:28:33
问题 We have a CVS repository and we create a tag on the active branch whenever a successful build is done. Is there any way by which I can determine the date when the tag was created? Looking into the history doesn't helps since it only tells the date-time stamps of the file when it was modified. Thanks! 回答1: You can easily configure CVS to log all tag-related actions. In the file '$CVSROOT/CVSROOT/taginfo' you can hook up a pre-tag script like this: ALL $CVSROOT/CVSROOT/do_tag If this script

cvs, “file should be removed and is still there (or back again)”

跟風遠走 提交于 2020-01-01 08:47:13
问题 I am trying to commit a project in which a file has been "cvs remove"d, but actually needs to be there. The contents has been completely rewritten, but it needs to retain the same name. I am unable to either commit the project or re-add the file without getting this annoying error message. How do I "unremove" a file in CVS? 回答1: This worked for me: Rename the file mv mistakenly_removed_file wtf Ask cvs to add the old version: cvs add mistakenly_removed_file cvs then reports it has resurrected

WEB中的敏感文件泄漏

一世执手 提交于 2019-12-31 23:24:35
文件泄露, 根据泄漏的信息敏感程度, 在WEB漏洞中可以算是中危甚至高危的漏洞, 本篇文章就来 介绍下一些常见的泄漏, 主要分为由版本管理软件导致的泄露, 文件包含导致的泄露和配置错误导致的泄露. 版本管理软件造成的泄露 git git 可以说是当今最受欢迎的版本控制/版本管理软件了, 很多基于git的云端托管仓库都提供了 免费的托管服务, 甚至有不少还支持免费私有仓库, 如bitbucket和国内的gitosc(开源中国)等. 关键文件 git在初始化项目的时候, 会在项目的根目录(可用 git rev-parse --show-toplevel 查看)创建一个名为 .git 的隐藏文件夹, 里面包含了本地所有commit的历史记录. 如果无意间将这个目录置于WEB的路径下让用户可以访问, 那么也就泄露了几乎所有的源代码和其他其他敏感信息. 泄露内容 所有该项目的源代码 私有仓库的地址 私密的配置信息 所有commiter的邮箱帐号信息 (可能)内部的帐号和密码 ... 利用方法 常规的利用方法就是下载整个目录, 然后用 git 命令回滚整个项目: wget -r --no-parent --mirror http://www.example.com/.git cd www.example.com && git reset --hard 当然也有一些自动化利用的脚本: dvcs