如何在给定分支中查找文件 [英] how to find files in a given branch

查看:64
本文介绍了如何在给定分支中查找文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我注意到,在执行代码视图时,公司中的人员通常只给出完成其工作的分支,而没有其他内容。因此,我想必须有一种简单的方法来查找给定分支中具有版本的所有文件,这是查找已更改的所有文件
的相同方法。



是的,我不知道在某些分支中查找文件的预期简便方法,因此需要您的帮助和事先感谢。

解决方案

您可以快速列出特定分支中的所有文件:

  cleartool find。 -type f -branch brtype(abranch) -print 

我建议将其与: / p>


  • 用户以限制特定用户,以防多个用户使用同一用户



 
cleartool find。 -type f-分支 brtype(abranch)-用户登录名-print




  • -created_since 过滤器,以查找自某个日期以来创建的所有元素,以防它们是对同一分支上完成的工作进行增量审核的情况。



 
cleartool find。 -type f-分支 brtype(abranch) -element {created_since(10-Jan)}-用户登录名-print


I noticed that when doing code view, people here in my company usually just give the branch in which his work is done, and nothing else. So I guess there must be a easy way to find out all the files that has a version in the given branch which is the same thing to find all the files that has been changed.

Yes, I don't know the expected "easy way" to find files in certain branch, so need your help and thanks in advance.

解决方案

You can quickly list all files from a particular branch:

cleartool find . -type f -branch "brtype(abranch)" -print

I would recommend combining that with:

  • -user to limit to a particular user, in case several users use the same branch.

    cleartool find . -type f -branch "brtype(abranch)" -user aloginname -print

  • -created_since filter, to find all elements created since a certain date, in case their is incremental review for a work done on the same branch.

    cleartool find . -type f -branch "brtype(abranch)" -element "{created_since(10-Jan)}" -user aloginname -print

这篇关于如何在给定分支中查找文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆