cvs

How do you rename a branch in CVS?

落花浮王杯 提交于 2019-12-04 18:22:08
问题 If you've named a branch in CVS incorrectly, or the name originally chosen becomes inappropriate, how do you change it to something else? A related question is How do you rename a branch in CVS without admin access?. 回答1: The trick to this is using one of CVSs' more obscure admin commands, -N. It is a two stage process, effectively copy then remove. Firstly, you create a branch with the correct name that references the original branch name. Secondly, you delete the original branch name.

What's the best practice of going GIT when upstream is 100% CVS?

本秂侑毒 提交于 2019-12-04 16:26:53
I'm curious what's the best practice of keeping your occasional contributions to an OSS project in git (e.g., on github/bitbucket/gitlab), whilst the upstream is exclusively CVS. My take is that it's very convenient to simply commit CVS/{Entries,Repository,Root} directly into git , and then at any time and from any box, you can simply checkout your git repo (w/ git ), and then update from the real upstream with cvs up , which is exactly what I do with my OpenBSD ports-readmes fork , as well as mdocml . However, I've noticed that most people are quite surprised and puzzled to see these CVS

organize project and specify directory for object files in Makefile

北城余情 提交于 2019-12-04 12:18:42
问题 Here are my two questions: I am now learning to manage my code with CVS, and I just want to make a repository for my C++ files, Makefile and bash and python scripts only, not the object files and executables. So I made several subdirectories under my project directory: src, bin, scripts, results and data. I put C++ files and Makefile under ~/myproject/src, Bash and Python scripts under ~/myproject/scripts and object and executables under ~/myproject/bin. I am hoping only the files under src

How to use mercurial locally with a central CVS repository?

百般思念 提交于 2019-12-04 08:01:22
Currently my company is using cvs for version control. I want to use mercurial locally because of it's flexibility and merging capabilities. This will make my job a lot easier. How should this be done? First : Get the CVS repository locally. Second : Create a mercurial repositories locally over this CVS repository. This will be used as your remote mercurial server. Third : Clone this mercurial repository and do you work here. Mercurial provides better merge support than cvs and will make your work easier. Commit back to CVS needs an extra step. Here is how this works, step-by-step . The

SVN and revision numbers

丶灬走出姿态 提交于 2019-12-04 06:48:40
问题 Say I have 3 files foo.txt, bar.txt and moo.txt all at revision 1. Say I commit foo.txt and bar.txt ten times. So they are at revison 1.10. Since in SVN there is a single revision no moo.txt also has to be at revision 1.10. Now if I see the history of moo.txt then, will I see the history of commits from 1 to 10? The reason I am asking this question is I was telling my friend how sucky CVS is when compared to SVN. He is a big fan of CVS. So he told me since CVS revision numbers are file

PostgreSQL syntax check without running the query

烈酒焚心 提交于 2019-12-03 18:47:08
问题 I want to verify the syntax of files containing sql queries before they can be committed in my CVS project. In order to do that, I have a commitinfo script, but I have trouble finding out if the sql commands are valid. psql does not seem to have a dryrun mode, and constructing my own postgresql-dialact tester from the grammar (that is in the source) seems like a long stretch. The scripts may contain multiple queries, so an EXPLAIN cannot be wrapped around them. Any hints? 回答1: I recently

Move a file in CVS without resetting the revision number

心不动则不痛 提交于 2019-12-03 17:36:44
问题 Lately I've be moving source files around in our source tree. For example placing a bunch of files into a common assembly. I've been doing this my deleting the file from CVS and then adding it again in the new spot. The problem is the revision number of the file resets back to 1.1. Is there some simple way to move things without having the number reset. I probably should have mentioned that I don't have access to the repository so anything that requires that doesn't help me but it might help

Eclipse CVS extssh broken under Windows 7 + Java 7

北城以北 提交于 2019-12-03 16:29:42
I'm running Windows 7 64-bit. After installing Java 7 (part of PS3 media server) when I was previously using Java 6, my Eclipse (Indigo Service Release 2, Build id: 20120216-1857) CVS stopped working to the server that's on a VPN. I connect using Cisco AnyConnect VPN Client Version 2.5.2019. The error I get whenever I try to connect to a repository is the following: Could not connect to :extssh:username@example.com:/cvsroot/username/project: CVS communication error: org.eclipse.team.internal.ccvs.ssh2.CVSSSH2ServerConnection$SSH2IOException: Permission denied: connect Permission denied:

Can Eclipse ignore .cvsignore files when synchronizing with a CVS repository?

丶灬走出姿态 提交于 2019-12-03 16:20:08
I am working with a team environment with a heterogeneous blend of IDE's among different developers. Some use Eclipse, others NetBeans, others IntelliJ, etc. The code projects are all structured around Maven... so nobody cares which IDE you use as long as it can play with Maven. To that end, we're not supposed to commit any IDE-specific files (e.g. ".project", ".classpath") to the CVS repository. I believe that this second part may be overkill... but we're also not supposed to commit our ".cvsignore" files, which contain filters for our individual individual IDE-specific files. It's a bit of a

How can I git-cvsimport multiple modules from a CVS repository, with differing branches?

流过昼夜 提交于 2019-12-03 16:00:00
I'm trying to git-cvsimport several different modules from CVS, all of which are on different branches. So far I've done this (in pseudo-bash code): for each ($MODULE, $BRANCH); do git-cvsimport -p x -v -d "$CVS_REPO" "$MODULE" -o "$BRANCH" -C "$MODULE" done But that makes a different git repository for each module . How would I merge them all into one, if that's even remotely possible? VonC In theory, you could use git grafts to merge your repositories into one: See "Is there a clean way to handle two original git repositories that started with the same content?" In practice, you might want