Ticket #626 (closed defect: fixed)

Opened 4 years ago

Last modified 3 years ago

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

comment:1 Changed 3 years ago by dustin

  • Status changed from new to closed
  • Resolution set to fixed
  • Milestone changed from undecided to 0.7.12

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
Note: See TracTickets for help on using tickets.