SVN中检出和导出之间的差异 [英] Difference between checkout and export in SVN

查看:734
本文介绍了SVN中检出和导出之间的差异的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

SVN检出和SVN导出之间的确切区别是什么?

What is the exact difference between SVN checkout and SVN export?

从我所知道的,导出不包括包含元数据的.svn目录,并且包括检出那个.svn目录。然而,我的同事最近有这个问题,对于从SVN repo检出和导出的源编译的东西,有一个不同的行为。他们都编译正确,但是从 svn export 编译的那个可以正常工作,但是签出的那个根本不起作用。

From what I know, export does not include the .svn directory which include metadata, and checkout included that .svn directory. Yet, my colleague had this problem recently that there is a different behaviour for the stuff compiled from sources that is checkout and exported from SVN repo. Both of them compiled correctly, but the one compiled from svn export works, but the one that is checked out doesn't work at all.

PS:正在编译的东西是在嵌入式设备中使用的Linux 2.4内核。图像编译和正确加载,但检出的不起作用。它会导致内核在insmod期间的恐慌。为什么会发生这种情况?

PS: The stuff being compiled is the Linux 2.4 kernel that is being used in an embedded device. The image compiles and load correctly, but the checked out one doesn't work. It causes a kernel panic during insmod. Why could this happen at all?

PPS:我们已经尝试过校验和差异工具来检查从SVN导出和签出的两个目录之间的区别。两者都是相同的,除了.svn目录。

PPS: We've tried checksumming and diff tool to check the difference between the two directories that are exported and checked out from SVN. Both of them are the same except for the .svn directory.

推荐答案

svn export 简单地从修订版中提取所有文件,不允许对其进行修改控制。它也不会丢失每个目录与.svn目录。

svn export simply extracts all the files from a revision and does not allow revision control on it. It also does not litter each directory with .svn directories.

svn checkout 允许您使用版本控制目录,例如您的标准命令,如 svn update svn commit

svn checkout allows you to use version control in the directory made, e.g. your standard commands such as svn update and svn commit.

这篇关于SVN中检出和导出之间的差异的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆