cvs

How do we verify commit messages for a push?

笑着哭i 提交于 2019-11-27 07:17:09
Coming from CVS, we have a policy that commit messages should be tagged with a bug number (simple suffix "... [9999]"). A CVS script checks this during commits and rejects the commit if the message does not conform. The git hook commit-msg does this on the developer side but we find it helpful to have automated systems check and remind us of this. During a git push, commit-msg isn't run. Is there another hook during push that could check commit messages? How do we verify commit messages during a git push? Cascabel Using the update hook You know about hooks - please, read the documentation

Context-aware merge?

那年仲夏 提交于 2019-11-27 07:05:41
Is there any diff/merge tool for programming languages, that works in a syntax-aware way (like XML Diff Tool), doing more than compare line-by-line (and optionally ignoring whitespace). I'm interested in a program actually following the language syntax and delimeters, suggesting changes without breaking syntactic correctness, or bundling statements separated over multiple lines. Example behavior would be: *upon finding an if(){ which introduces an extra nesting level automatically bundle the closing brace } several lines below with it.) *keep matching syntax elements together, avoid silliness

Downloading Eclipse's Source Code [closed]

不羁岁月 提交于 2019-11-27 04:30:49
问题 I'm doing a study on large Java projects and would like to view the source code for Eclipse. I have gone to this url (http://wiki.eclipse.org/index.php/CVS_Howto) and figured that the most useful cvs repository for me to look at would be this one: :pserver:anonymous@dev.eclipse.org:/cvsroot/eclipse (The Eclipse platform project) However, when looking at this repository, it has so many modules! Which modules should I be trying to check out? I don't necessarily want to build the IDE from source

Web常见的源码泄露

这一生的挚爱 提交于 2019-11-27 02:35:43
0x01 .git源码泄漏 漏洞成因: 在运行git init初始化代码库的时候,会在当前目录下面产生一个.git的隐藏文件,用来记录代码的变更记录等等。在发布代码的时候,把.git这个目录没有删除,直接发布了。使用这个文件,可以用来恢复源代码。 e.g. http://www.127.0.0.1/.git/config 漏洞利用工具: 1.GitHack 下载地址: https://github.com/lijiejie/GitHack GitHack 工具使用说明: python2 GitHack.py http://127.0.0.1/.git/ 需要python2的运行环境 修复建议: 1、删除.git文件 2、通过apache/nginx来拒绝.git访问 0x02 .hg文件泄露 漏洞成因: Mercurial 是一个 版本控制系统. 开发者可以用它来管理源代码. hg在初始化代码库的时候,会在当前目录下面产生一个.hg的隐藏文件 e.g. http://www.127.0.0.1/.git/config 漏洞利用工具: dvcs-ripper 下载地址 https://github.com/kost/dvcs-ripper rip-hg.pl -v -u http://www.example.com/.hg/ 修复建议: 删除.hg 0x03 svn源码泄露 漏洞成因

Migrate from CVS to Git without losing history

假如想象 提交于 2019-11-27 00:10:38
问题 I need to know if there is a way to migrate my code from CVS source control to Git? If yes, what about my history of commits? 回答1: I've not personally done a conversion from CVS to Git, but I believe Eric Raymond's cvs-fast-export is the tool to use. He has the man page posted here. cvsps is another tool maintained by Eric, but it has recently been deprecated in favor of cvs-fast-export . cvs2git is another tool which is built on some of the same machinery as cvs2svn . The latter was

Convert git repository file encoding

☆樱花仙子☆ 提交于 2019-11-26 19:58:37
问题 I have a large CVS repository containing files in ISO-8859-1 and want to convert this to git. Sure I can configure git to use ISO-8859-1 for encoding, but I would like to have it in utf8 . Now with tools such as iconv or recode I can convert the encoding for the files in my working tree. I could commit this with a message like converted encoding . My question now is, is there a possibility to convert the complete history? Either when converting from cvs to git or afterwards. My idea would be

Is there a migration tool from CVS to Git?

一笑奈何 提交于 2019-11-26 19:43:00
I intend to switch over from CVS to Git. In the case of SVN, there seems to be cvs2svn . Is there a similar tool to easily migrate from CVS to Git? Jakub Narębski The only tool that has incremental import seems to be git-cvsimport . If you want to convert ( migrate ) from CVS to Git, the best solution for now seems to be mentioned above cvs2git mode of cvs2svn . See also Interfaces Frontends And Tools page on Git wiki, section about interaction with other revision control systems. cvs2git In addition to provided answers, here's a guide on how to convert cvs to git using cvs2git tool. Here,

Diffing between two entire directories/projects in hg or git?

筅森魡賤 提交于 2019-11-26 19:14:14
问题 I inherited a project originally stored in CVS with all the revisions. I made quite a few edits, and I'm trying to compare all the changes I made in the original directory, in regards to new files added versus the old ones. Is there some sort of utility for hg/git where I can do a tree diff, or something of that nature? So that say, there's a mark between newly added files, deleted files, am I asking for too much? 回答1: git diff does exactly that. but it only works for git projects. hg diff ,

Why should I use version control?

馋奶兔 提交于 2019-11-26 18:10:29
I was reading a blog where the writer said this "Code doesn’t exist unless it’s checked into a version control system. Use version control for everything you do. Any version control, SVN, Git, even CVS, master it and use it." I have never used any sort of version control and I do not find it that great. I have googled it and looked at it before, but I just need it put into children's terms if you will please. As I understand it right now, things like SVN are for storing your code online for a group of users or other developers to have access to the same code. Once you update some code, you can

Transferring legacy code base from cvs to distributed repository (e.g. git or mercurial). Suggestions needed for initial repository design [closed]

删除回忆录丶 提交于 2019-11-26 17:59:07
Introduction and Background We are in the process of changing source control system and we are currently evaluating git and mercurial. The total code base is around 6 million lines of code, so not massive and not really small either. Let me first start off with a very brief introduction to how the current repository design looks. We have one base folder for the complete code base, and beneath that level there are all sorts modules used in several different contexts. For example “dllproject1” and “dllproject2” can be looked at as completely separate projects. The software we are developing is