如何找出我的工作副本来自哪个版本控制系统?

发布于 2024-07-09 20:30:40 字数 59 浏览 3 评论 0原文

如果您有一些来自不同版本控制系统(cvs、svn...)的目录,您如何找出每个目录来自什么类型的存储库?

If you have some directories from different version control systems (cvs, svn...), how do you find out what type of repository each came from?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

靑春怀旧 2024-07-16 20:30:41

TortoiseSVN 在 Windows 资源管理器中显示图标覆盖(当然是在 Windows 上)。 您可以右键单击(此时存储库使用 TortoiseSVN 的事实是显而易见的)并在上下文菜单上获取信息、帮助和许多 SVN 功能。

如果任何版本控制系统也使用图标覆盖,那么如果您使用多个系统,您仍然可能会遇到相同的问题,如上所述。

正如 Greg 所说,SVN 下的每个目录中还有一个 .svn 文件夹。

TortoiseSVN displays icon overlays within Windows Explorer (on Windows, of course). You can right-click (the fact the repository uses TortoiseSVN is obvious at this point) and get information, help, and many SVN functions on the context menu.

If any revision control systems also use icon overlays, you still might have the same problem if you use more than one system, as you state above.

And as Greg states, there is also a .svn folder in each directory under SVN.

朮生 2024-07-16 20:30:40

“svn info”是你想要的命令。

/一些/随机/目录/在/项目/空间/

$ svn info

Path: .
URL: https://example.org/svn/project/space/
Repository Root: https://example.org/svn/project/
Repository UUID: aaaaaaaa-bbbb-cccc-dddd-333333333333
Revision: 295
Node Kind: directory
Schedule: normal
Last Changed Author: kurt
Last Changed Rev: 295
Last Changed Date: 2008-12-14 01:43:24 -0500 (Thu, 18 Dec 2008)

"svn info" is the command you want.

/some/random/directory/in/project/space/

$ svn info

Path: .
URL: https://example.org/svn/project/space/
Repository Root: https://example.org/svn/project/
Repository UUID: aaaaaaaa-bbbb-cccc-dddd-333333333333
Revision: 295
Node Kind: directory
Schedule: normal
Last Changed Author: kurt
Last Changed Rev: 295
Last Changed Date: 2008-12-14 01:43:24 -0500 (Thu, 18 Dec 2008)
漫雪独思 2024-07-16 20:30:40

是否有 .svn 文件夹? -> SVN

是否有 CVS 文件夹? -> CVS

是否存在以 .scc.vssscc 结尾的文件(可能有点取决于 VSS 版本)? -> 微软 Visual SourceSafe

Are there .svn folders? -> SVN

Are there CVS folders? -> CVS

Are there files ending in .scc and .vssscc (probably depending a bit on the VSS version)? -> Microsoft Visual SourceSafe

蒗幽 2024-07-16 20:30:40

正如 kurt 所说,svn info 会给你很多信息。 如果你只是想知道这个目录是否受到修订控制,你可以查找其中包含所有数据的文件夹 - 对于 svn,它称为“.svn”(你可能必须打开查看隐藏目录) darcs 其“_darcs”。

As kurt said, svn info will give you lots of information. If you just want to know whether this directory is under revision control or not, you can look for the folder with all the data in it -- for svn it's called '.svn' (you may have to switch on view hidden directories) for darcs its '_darcs'.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文