logo       
Google Custom Search
    AddThis Social Bookmark Button

RE: [p4] Finding changelists between labels: msg#00104

Subject: RE: [p4] Finding changelists between labels
Andy,

It still doesn't work.  Here is a specific test case:

echo file1.txt>file1.txt
echo file2.txt>file2.txt
echo file3.txt>file3.txt
p4 add //depot/test/file1.txt
p4 submit
p4 label1
p4 labelsync -l label1 //depot/test/...
p4 add //depot/test/file2.txt
p4 submit
p4 label2
p4 labelsync -l label2 //depot/test/...
p4 add //depot/test/file3.txt
p4 submit
p4 label3
p4 labelsync -l label3 //depot/test/...
 
Note that the three changelists are 1218, 1219, 1220.
 
I want a command which shows me the changelists submitted after label1
was applied upto and including the application of label3 (i.e. 1219,
1220).

Both of the following return no results:
p4 changes "//depot/test/...@>label1,@label3"
p4 changes "//depot/test/...@>label1,@<=label3"

Jeff

-----Original Message-----
From: Andy Nguyen [mailto:anguyen@xxxxxxxxx] 
Sent: Monday, January 31, 2005 1:31 PM
To: Smith, Jeff; perforce-user@xxxxxxxxxxxx
Subject: RE: [p4] Finding changelists between labels



Sorry,

I missed the single quote at the end.

project=//depot/project/...
label1=old_label
label2=new_label

p4 changes ${project}'@>${label1},@<=${label2}'

-Andy
 

-----Original Message-----
From: perforce-user-bounces@xxxxxxxxxxxx
[mailto:perforce-user-bounces@xxxxxxxxxxxx] On Behalf Of Smith, Jeff
Sent: Monday, January 31, 2005 8:23 AM
To: Andy Nguyen; perforce-user@xxxxxxxxxxxx
Subject: RE: [p4] Finding changelists between labels

Is the single quote in your suggestion a typo?  Is it a forward quote or
back-quote?

Either way, I still get a null result back for the test case I have
given.

Jeff


-----Original Message-----
From: Andy Nguyen [mailto:anguyen@xxxxxxxxx] 
Sent: Monday, January 31, 2005 3:19 AM
To: perforce-user@xxxxxxxxxxxx
Subject: RE: [p4] Finding changelists between labels



Hi Jeff,

I used the command below.  I think this is what you are looking for.

project=//depot/project/...
label1=old_label
label2=new_label

p4 changes ${project}'@>${label1},@<=${label2}
 
-Andy

-----Original Message-----
From: perforce-user-admin@xxxxxxxxxxxx
[mailto:perforce-user-admin@xxxxxxxxxxxx] On Behalf Of Smith, Jeff
Sent: Friday, January 28, 2005 9:18 AM
To: perforce-user@xxxxxxxxxxxx
Subject: [p4] Finding changelists between labels

I know this question has been much hashed about and I do have an
algorithm which works...but I always look for a single command to answer
these types of frequently asked questions.

The closest I have found is

p4 changes //depot/filespec@>label1,@label2

But this misses all the changelists which only add files which have only
been labelled with label2.  

Consider
        changelist 01215: add file1
        apply label test1
        changelist 01216: add file2
        apply label test2
        changelist 01217: add file3
        apply label test3

p4 changes //depot/...@test1,@test2

yields only 01215 and

p4 changes //depot/...@>test1,@test2
p4 changes //depot/...@>test1,@test3

both yield nothing

Is this a Perforce bug?

Jeff

_______________________________________________
Come to the 2005 Perforce User Conference, April 14 & 15 in Las Vegas.
Learn more: http://www.perforce.com/conf 

perforce-user mailing list  -  perforce-user@xxxxxxxxxxxx
http://maillist.perforce.com/mailman/listinfo/perforce-user

_______________________________________________
Come to the 2005 Perforce User Conference, April 14 & 15 in Las Vegas.
Learn more: http://www.perforce.com/conf 

perforce-user mailing list  -  perforce-user@xxxxxxxxxxxx
http://maillist.perforce.com/mailman/listinfo/perforce-user

_______________________________________________
Come to the 2005 Perforce User Conference, April 14 & 15 in Las Vegas.
Learn more: http://www.perforce.com/conf 

perforce-user mailing list  -  perforce-user@xxxxxxxxxxxx
http://maillist.perforce.com/mailman/listinfo/perforce-user

_______________________________________________
Come to the 2005 Perforce User Conference, April 14 & 15 in Las Vegas.
Learn more: http://www.perforce.com/conf 

perforce-user mailing list  -  perforce-user@xxxxxxxxxxxx
http://maillist.perforce.com/mailman/listinfo/perforce-user




Try Searching:
servers, voip, java, networking, microsoft ...
<Prev in Thread] Current Thread [Next in Thread>