English 中文(简体)
颠覆:外部档案压倒一切?
原标题:Subversion svn:externals file override?

我有一个存放处,负责利用<代码>svn:外部<<>/代码>的存放处更新外部图书馆的档案。 问题在于,我需要从该图书馆的一位负责人那里发表一份功能声明,并将经过修改的负责人带上根库。

这样做是否可行,以便当图书馆得到更新时,它优先于我版本的具体档案?

最佳回答

你们想要的是像“供应商分支”的设想。

root
|-- myproject
    |
    -- mycode
    |
    -- library -> svn:externals to a remote svn or your own libraryproject

uggested Deposit

root
|-- myproject
    |
    -- mycode
    |
    -- library -> copied/branched from ^/vendor/library/current (modified at this location as much as you like)

|
-- vendor
   |
   --library
     |
     --current
     |
     --imported-version-1.0
     |
     --imported-version-1.1

www.un.org/Depts/DGACM/index_spanish.htm 如何创造布局

• 建立^/供应商/图书馆/现有和DOWNLOAD原始未经修改的图书馆代码。

svn commit ^/vendor/library/current
svn cp ^/vendor/library/current ^/vendor/library/imported-version-1.0 (tag the import)
svn cp ^/vendor/library/current ^/myproject/library (branch the code into your project)

修改^/米项目/图书馆和承诺


www.un.org/Depts/DGACM/index_spanish.htm 如何更新图书馆,同时又不失去改动。

将图书馆的最新原始版本下载到^/vendor/library/当期综合档案中。

svn commit ^/vendor/library/current (checks in the difference between the two library releases)
svn cp ^/vendor/library/current ^/vendor/library/imported-version-1.1 (tag the change)
cd /your-local-workspace/myproject/library (will be merge target)
svn merge ^/vendor/library/current (get all CHANGES from the upstream branch and apply them to your modified library)
svn commit

利润


您不能将“现成”直接投入你的项目中,而是可以投向“经修改的校准”名录,并通过外部加以利用。 如果你有多个项目需要同样修改的图书馆版本,将予以建议。

铭记供应商分行将存在与改名和删除有关的问题,因为这些问题无法通过透镜跟踪。 跨国托存的合并对于SVN来说是一个不同而比较年轻的专题。

如果你尝试这样做,就向我们反馈如何做到:

Christoph

问题回答

还没有一个帮助你实现这一目标的特征。

处理这一问题的一般做法是:使图书馆成为图书馆的一个分支,然后由您重新使用,从而改变你们在那里的需要,并利用新设立的分支作为根本项目的外部机构。 在我的经验中,我发现这是你所描述问题的简单而有效的解决办法。





相关问题
Best practices for Subversion and Visual Studio projects

I ve recently started working on various C# projects in Visual Studio as part of a plan for a large scale system that will be used to replace our current system that s built from a cobbling-together ...

Changing username in SVN+SSH URI on the fly in working copy

I am using SVN+SSH to check out a working copy of repository from an SVN server on which all developers are members of a developer group and have full read/write permissions on the repository ...

ASP.NET MVC: How should it work with subversion?

So, I have an asp.net mvc app that is being worked on by multiple developers in differing capacities. This is our first time working on a mvc app and my first time working with .NET. Our app does not ...

How to search for file in subversion server?

Is there a way to search for a file in a subversion repository? Something similar to Unix find command, with which I can find the location of a file in a repository. I know there is svn list, but ...

热门标签