Issue 3124 in reviewboard: Update the Perforce changelist number once the changelist has been submitted

2013-10-31 Thread reviewboard

Status: New
Owner: 
Labels: Type-Defect Priority-Medium

New issue 3124 by matt.mul...@gmail.com: Update the Perforce changelist  
number once the changelist has been submitted

http://code.google.com/p/reviewboard/issues/detail?id=3124

*** READ THIS BEFORE POSTING!
***
*** You must complete this form in its entirety, or your bug report will be
rejected.
***
*** For customer support, please post to reviewbo...@googlegroups.com
***
*** If you have a patch, please submit it to
http://reviews.reviewboard.org/
***
*** Do not post confidential information in this bug report!


What version are you running?
1.7.14

What's the URL of the page containing the problem?
http://reviewboard.example.com/r/345

What steps will reproduce the problem?
1. Post a review for changelist 123456 (notice correct Change Number  
displayed on review)


2. Submit the changelist 123456 which gives output like:


p4 submit -c 123456

Submitting change 123456.
Locking 1 files ...
Elapsed time: 0.018085
edit //depot/path/to/file.py#4
Change 123456 renamed change 123567 and submitted.


3. Notice that review request still shows Change Number: 123456 instead of  
123567.


What is the expected output? What do you see instead?

It would be nice if the review showed the new Change Number 123567.

What operating system are you using? What browser?

Windows 7, Chrome

Please provide any additional information below.

You can use p4 change -O -o changelist to find the new changelist  
number for a submitted changelist. This also conveniently works for  
changelists that have not been renamed such as pending changelists.


In scmtools/perforce.py, in PerforceClient._get_changeset you currently  
call p4 describe -s changesetid to get the changeset information. If  
you instead first call p4 change -O -o changesetid and parse out the  
new changelist number you can then call p4 describe -s on the new  
changelist number. You would then need to update  
PerforceTool.parse_change_desc to set changeset.changenum to the parsed  
changenum instead of the passed in changenum.


--
You received this message because this project is configured to send all  
issue notifications to this address.

You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
You received this message because you are subscribed to the Google Groups 
reviewboard-issues group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard-issues+unsubscr...@googlegroups.com.
To post to this group, send email to reviewboard-issues@googlegroups.com.
Visit this group at http://groups.google.com/group/reviewboard-issues.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Issue 3124 in reviewboard: Update the Perforce changelist number once the changelist has been submitted

2013-10-31 Thread reviewboard

Updates:
Status: Duplicate
Mergedinto: 2272

Comment #1 on issue 3124 by trowb...@gmail.com: Update the Perforce  
changelist number once the changelist has been submitted

http://code.google.com/p/reviewboard/issues/detail?id=3124

(No comment was entered for this change.)

--
You received this message because this project is configured to send all  
issue notifications to this address.

You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
You received this message because you are subscribed to the Google Groups 
reviewboard-issues group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard-issues+unsubscr...@googlegroups.com.
To post to this group, send email to reviewboard-issues@googlegroups.com.
Visit this group at http://groups.google.com/group/reviewboard-issues.
For more options, visit https://groups.google.com/groups/opt_out.