我试图通过此命令更改远程存储库的"svn:externals"属性:
svn ps svn:externals "vendor1 http://vendor_repo_here.com" http://main-repo-here.com
Run Code Online (Sandbox Code Playgroud)
我期待上面的命令将"svn:externals"属性从"vendor1 http://vendor_repo_here.com " 更改为" 但是它会抛出错误:
Setting property on non-local target 'http://main-repo-here.com' needs a base revision.
Run Code Online (Sandbox Code Playgroud)
所以我试试这个:
svn ps -r HEAD svn:externals "vendor1 http://vendor_repo_here.com" http://main-repo-here.com
Run Code Online (Sandbox Code Playgroud)
现在它说:
Cannot specify revision for versioned property 'svn:externals'
Run Code Online (Sandbox Code Playgroud)
难道我做错了什么?无论如何通过命令行远程更改?
我们在哈德森的一个项目有生产工作和夜间工作.生产作业需要从特定的夜间构建#(作为参数提供)中提取一些工件.任何人都可以帮助我们提示如何实现这一目标吗?
我可以使用以下简单代码片段来最好地解释该问题:
var child1 = {name: 'child1'};
var child2 = {name: 'child2'};
var parent = {
_cache: [], // storage var
writeCache: function(key, val)
{
console.log('writing cache::'+this.name);
this._cache[key] = val;
},
readCache: function(key)
{
if(this._cache[key] == undefined)
{
return false;
}
return this._cache[key];
},
};
jQuery.extend(child1, parent);
jQuery.extend(child2, parent);
child1.writeCache('myKey', 123);
console.log(child1.readCache('myKey')); // returns 123 as expected
console.log(child2.readCache('myKey')); // returns 123 unexpectedly (for me at least)
Run Code Online (Sandbox Code Playgroud)
看到最后一行:
console.log(child2.readCache('myKey'));
Run Code Online (Sandbox Code Playgroud)
现在,为什么只访问child1的writeCache()时为什么返回123?