小编Abh*_*ver的帖子

是否可以远程更改subversion存储库的"svn:externals"属性?

我试图通过此命令更改远程存储库的"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)

难道我做错了什么?无论如何通过命令行远程更改?

svn

18
推荐指数
1
解决办法
2万
查看次数

如何从另一个job2访问Hudson job1工件?

我们在哈德森的一个项目有生产工作和夜间工作.生产作业需要从特定的夜间构建#(作为参数提供)中提取一些工件.任何人都可以帮助我们提示如何实现这一目标吗?

hudson hudson-api jenkins

8
推荐指数
1
解决办法
5207
查看次数

为什么当我使用相同的缓存对象对两个对象进行jQuery.extend共享时,为什么拥有共享缓存?

我可以使用以下简单代码片段来最好地解释该问题:

    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?

javascript jquery

2
推荐指数
1
解决办法
247
查看次数

标签 统计

hudson ×1

hudson-api ×1

javascript ×1

jenkins ×1

jquery ×1

svn ×1