git-cvs

Getting commitid or 'git describe' with git-cvsserver and a CVS working copy

[亡魂溺海] 提交于 2019-12-22 18:49:36
问题 I have some automated tools that are accessing a git repository through cvs and git-cvsserver . I would like these tools to be able to see the commit ID of the content that they checked out. Is this recorded somewhere in the CVS metadata directory? 来源: https://stackoverflow.com/questions/2284516/getting-commitid-or-git-describe-with-git-cvsserver-and-a-cvs-working-copy

How to import CVS to git scm?

风格不统一 提交于 2019-12-18 05:06:06
问题 In order to import a revision of a CVS module, I am using: /usr/lib/git-core/git-cvsimport -a -i -p r,revisionname -k -v -d :pserver:user@xxx.com:2401/srv/cvs/rootname modulename It works for a while and then I get something like cvsps got an error. How do I determine what the cvsps error is? 回答1: Gave up on this approach and have used cvs2git. The cvs2git is a tool that can be used to migrate CVS repositories to newer version control tools, including git. Sample usage: cvs2git \ --blobfile

How to import and keep updated a CVS repository in Git? [closed]

北城余情 提交于 2019-12-17 21:45:46
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 4 years ago . There is a central repository in CVS, and I would like to use it with Git locally, and then send my changes back to CVS. What can I accomplish that on a daily basis? The tasks I would like to accomplish are: importing branches, getting history in GIT-like format, and

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

无人久伴 提交于 2019-12-09 21:43:34
问题 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

Getting commitid or 'git describe' with git-cvsserver and a CVS working copy

我怕爱的太早我们不能终老 提交于 2019-12-06 14:24:38
I have some automated tools that are accessing a git repository through cvs and git-cvsserver . I would like these tools to be able to see the commit ID of the content that they checked out. Is this recorded somewhere in the CVS metadata directory? 来源: https://stackoverflow.com/questions/2284516/getting-commitid-or-git-describe-with-git-cvsserver-and-a-cvs-working-copy

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

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

Why is git-cvsimport missing one major patchset?

喜夏-厌秋 提交于 2019-12-03 10:08:45
问题 This is a followup to a previous question of mine. I can look through the output of cvsps (saved in my ~/.cvsps directory) and see a patchset for a major, complicated commit. But this commit does not show up when I do cvsimport to update my existing git repository. I know that git-cvsimport will ignore patchsets that are newer than 10 minutes, in an effort to avoid importing a CVS commit that is incomplete. I think I've also heard that it will skip patchsets for which the associated branch

git cvsimport Error: “root … must be an absolute pathname”

隐身守侯 提交于 2019-12-02 17:09:29
问题 I'm trying to clone a CVS repository using git: lawsa~/java/projects/iu$ git cvsimport -C ../iugit ebs/fs/kfs Expected Valid-requests from server, but got: E Root :extssh:lawsa@cvs.uits.iu.edu:/srcctrl/CVS must be an absolute pathname lawsa~/java/projects/iu$ I see that another man had a similar problem here. He cites his solution: "As long as I use anonymous access then I can get the convert working!". This doesn't work as our server will certainly not allow anonymous access (even if they

Reverting part of a commit with git

Deadly 提交于 2019-11-29 18:44:07
I want to revert a particular commit in git. Unfortunately, our organization still uses CVS as a standard, so when I commit back to CVS multiple git commits are rolled into one. In this case I would love to single out the original git commit, but that is impossible. Is there an approach similar to git add --patch that would allow me to selectively edit diffs to decide which parts of a commit to revert? mipadi Use the --no-commit ( -n ) option to git revert , then unstage the changes, then use git add --patch : $ git revert -n $bad_commit # Revert the commit, but don't commit the changes $ git