Jump to content


p4v sync with a GUID?

p4v sync log guid

  • Please log in to reply
3 replies to this topic

#1 ebernard

ebernard

    Newbie

  • Members
  • Pip
  • 4 posts

Posted 12 July 2013 - 03:18 PM

I am investigating a problem that caused loss of changes from a particular user. Here's what I find in the log from p4v:
(actual file names redacted)


the_file_that_broke - must resolve #171 before submitting
p4 list bunch_of_files {18 more items}
p4 sync -f @82AD96D2-9A72-44DF-B743-2B705AAC131A,82AD96D2-9A72-44DF-B743-2B705AAC131A
    22 files updated

I also know for a fact that the file was never resolved before the sync.
But what kind of sync is this? The only thing that comes to mind is maybe an unshelve op? If so is it possible to retrieve the files that were affected?

#2 P4GabeW

P4GabeW

    Advanced Member

  • Members
  • PipPipPip
  • 62 posts

Posted 12 July 2013 - 03:45 PM

Unshelve won't force a sync. A forced sync could be from the user saying so (checking the force sync button in the get revision dialog), but even in that circumstance, if you have a file open for resolve, it won't blow away the resolve. The file is still open for resolve regardless of whether or not the file is sync'd or not. So unless the sync occured after a revert, the file should still be resolve-able with no data lost other than it may now be a nastier resolve since a file got sync'd on top, forcing the resolve of both whatever had come before, in addition to the new revision.

p4 list is only run in p4v when the user is explicitly sync'ing. So the combo of commands I see there tells me that the user initiated a sync manually, likely with the force checkbox checked. The message you see there about must resolve before submitting means that there was a file checked out before the sync was started. No data has been lost at this stage of the game, the open work just needs to be resolved with the new revision that was sync'd on top of it.

#3 Domenic

Domenic

    Advanced Member

  • Members
  • PipPipPip
  • 93 posts

Posted 12 July 2013 - 06:53 PM

View Postebernard, on 12 July 2013 - 03:18 PM, said:

p4 sync -f @82AD96D2-9A72-44DF-B743-2B705AAC131A,82AD96D2-9A72-44DF-B743-2B705AAC131A
22 files updated

I also know for a fact that the file was never resolved before the sync.
But what kind of sync is this? The only thing that comes to mind is maybe an unshelve op? If so is it possible to retrieve the files that were affected?

Are you using a P4V version that is 2012.1 or later? If so, check out http://answers.perfo...r-in-P4V-2012-1 for more info about the sync with a GUID.

#4 P4GabeW

P4GabeW

    Advanced Member

  • Members
  • PipPipPip
  • 62 posts

Posted 12 July 2013 - 06:55 PM

What Domenic said. Also, there was a bug surrounding that which I THINK went into the 2012.3 p4v, but was fixed in the 2013.1 p4v. The list command should ONLY ever be used when explicltly syncing per the user's request (i.e. running Get Latest on multiple selection, or using the Get Revision... dialog)




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users