如何在签出目录中切换cvs用户
我的同事从 cvs 检查了我们的源代码树并进行了一些本地更改,然后给了我整个修改目录的副本。当我尝试对其进行 cvs 操作时,cvs 要求输入他的密码。有没有办法更改此目录中 cvs 文件中保存的用户名,以便我可以继续处理它,就像我已签出并进行更改一样?
我们不希望签入此修改后的代码或创建任何其他分支。
谢谢。
My co-worker checked out our source tree from cvs and made some local changes, and then gave me a copy of the entire modified directory. When I try to do cvs operations on it, cvs is asking for his password. Is there a way to change the saved username in the cvs files within this directory so that I can continue working on it as if I had checked it out and made the changes?
We'd prefer not to check in this modified code or create any additional branches.
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
找到了解决方案:
部分描述在这里:
http://worldforge.org/doc/faq/cvs/#unix2
这是什么我做了:
Found a solution:
A partial description is here:
http://worldforge.org/doc/faq/cvs/#unix2
Here's what I did:
感谢您的解决方案,斯图帕科夫;它对我帮助很大!使用此命令可以稍微简单一些(并且更通用;我没有安装 perl)。请注意,它同时处理 Root 和 Root.orig:
Thanks for your solution, stupakov; it helped me a lot!. It can be slightly simpler (and more universal; I didn't have perl installed) with this command. Note that it handles both Root and Root.orig:
TortoiseCVS/CVSNT 的替代方法是使用 switch 命令:右键单击文件资源管理器中的 CVS 跟踪目录,然后从 CVS 子菜单中选择 Switch...。您将收到新 CVSROOT 的提示。例如,如果您的旧 CVSROOT 是“:pserver:alice@cvs:/vol/cvsroot”,请键入“:pserver:bob@cvs:/vol/cvsroot”将用户从 alice 切换到 bob。更改会递归地影响整个子目录。
也可以从命令行执行:
但是,请注意此功能特定于 CVSNT。
The alternative with TortoiseCVS/CVSNT is to use the switch command: right click on the CVS-tracked directory in File Explorer and choose Switch... from the CVS submenu. You'll get a prompt for a new CVSROOT. For example, if your old CVSROOT is ":pserver:alice@cvs:/vol/cvsroot", type in ":pserver:bob@cvs:/vol/cvsroot" to switch the user from alice to bob. The change affects the whole subdirectory recursively.
Also possible to do from the command line:
However, note that this functionality is specific to CVSNT.