Ticket #626 (closed defect: fixed)
P4Base.parseGotRevision returns wrong revision in some cases
| Reported by: | JefC | Owned by: | |
|---|---|---|---|
| Priority: | major | Milestone: | 0.7.12 |
| Version: | 0.7.11 | Keywords: | |
| Cc: |
Description
In P4Base.parseGotRevision, the following command is called to retrieve the "have revision" of the P4 workspace:
"p4 changes -m 1 #have"
When the latest changelist contains only deleted files, this command returns the changelist that was submitted before that one.
One way to fix this would be to use the following command instead:
"p4 changes -s submitted -m 1", as discussed in the following thread:
http://stackoverflow.com/questions/47007/determining-the-last-changelist-synced-to-in-perforce
Change History
Note: See
TracTickets for help on using
tickets.
![[Buildbot Logo]](/chrome/site/header-text-transparent.png)
I know nothing about p4, but I suppose I can do that:
commit 79b289d5abe33a7183f4ac2da7476662c4b98fdf Author: Dustin J. Mitchell <dustin@zmanda.com> Date: Fri Dec 18 22:37:48 2009 -0600 refs #626 -- use -s submitted in p4 changes invocation