有没有办法让 subversion 将文件添加到默认更改列表?
我希望能够告诉 svn 自动将新文件添加到默认更改列表中,主要是作为 svn 缺乏“无更改列表”过滤器的解决方法。有官方的方法吗?我可以编写一个小脚本来做到这一点,但如果有一种方法可以与命令行客户端很好地集成,我很想知道它。
如果 svn 使用属性将文件标记为更改列表的成员,那么这将非常简单(我认为)。可惜,事实并非如此。
我用的是1.6.9
I'd like to be able to tell svn to automatically add new files to a default changelist, mostly as a workaround to svn's lack of a "no changelist" filter. Is there an official way of doing this? I can write a little script to do it, but if there's a way to do it that will integrate well with the command-line client, I'd love to know about it.
If svn used properties to mark files as members of a changelist, this would be dead simple (I think). Alas, this is not the case.
I'm using 1.6.9
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
由于 svn 不支持比单个提交更细粒度的变更集/列表,我怀疑是否有任何官方的“好”方法来实现它。
您可以尝试通过引入一些属性来自己完成此操作...
key: myprops:changelist
值:重构工作 20:41,150:153,337:360
jiratask1234 409:445
例如,如果您只想获取某些更改列表,则必须管理从 IDE 级别到服务器查询的所有内容。
我不会尝试这样做。
As svn dosnt support changesets/lists on finer granularity than the single commit I'd doubt there is any officaly "good" way to implement it.
You could attempt to do it yourself by introducing some properties ...
key: myprops:changelist
value: refactoringwork 20:41,150:153,337:360
jiratask1234 409:445
You would have to manage it all from the IDE-Level to the serverqueries if you want to only get certain changelists for example.
I would not attempt to do it.