Re: [p4] Is there a way to get the list of branches those were created in a time period?

Sambwise <[email protected]>
Newsgroups gmane.comp.version-control.perforce
Message-ID <[email protected]>
Posted on behalf of forum user 'Sambwise'.

Note that there's a difference between the creation of a branch spec and the
creation of files in one of the corresponding namespaces -- usually when people
think of a "branch" they think of the branched files, not the spec
(many branches don't even have a corresponding branch spec, and sometimes a
branch will have multiple associated branch specs).  To figure out
which branches of the form //depot/BRANCHNAME were created in a given time I
think you could do:

p4 files //depot/...#<=1,@>=STARTDATE,@<=ENDDATE | cut -d '/'
-f 1-4 | uniq  
The fancy rev range is looking for #1 file revisions submitted in the given
range (this will mostly correspond to branch creation, although you might get a
few false positives from older branches that had files added later), and then
the cut/uniq stuff should whittle it down to a list of unique branch names.

For the branch specs, since there's no Creation field in the branch spec
your best option is a spec depot (but you need to have set one up ahead of
time):

p4 files //spec/branch/...@STARTDATE,ENDDATE



--
Please click here to see the post in its original format:
  http://forums.perforce.com/index.php?/topic/5591-is-there-a-way-to-get-the-list-of-branches-those-were-created-in-a-time-period
_______________________________________________
perforce-user mailing list  -  [email protected]
http://maillist.perforce.com/mailman/listinfo/perforce-user
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.