How to keep includes in SVN

扶醉桌前 提交于 2019-12-08 05:04:44

问题


I am moving from clearcase-lite (CC-LT) to SVN.

In clearcase we link every C++ header file in central folder (Include) in order to simplify the make-file configuration. For example:

Folder1/a.h
Folder2/b.h
Folder3/c.h
Include/
        a.h --> ../Folder3/a.h
        b.h --> ../Folder3/b.h
        c.h --> ../Folder3/c.h

And Make file contains:

-I../../Include

Currently, in clearcase, each link under Include folder is an element.

Now that we are moving to SVN I wonder if that is the best way to handle this.

Do I need to keep the same concept and import also the symlink files?


回答1:


Do I need to keep the same concept

Considering that SVN can keep the same directory structure, the simplification you got from those symlinks will apply as well for the same makefile.
So yes, you should consider keeping those.

import also the symlink files?

Yes, but check how they are imported. If they are converted as element as well, you will need a post-import step in order to delete them/replace them with proper symlinks.



来源:https://stackoverflow.com/questions/24674708/how-to-keep-includes-in-svn

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!