Discussion:
[p4] Sync local workspace with depot
Owen
2011-08-09 11:30:01 UTC
Permalink
Posted on behalf of forum user 'Owen'.

I am attempting to sync my local workspace with the depot. I am using the Get
Latest Revision option from P4V Perforce Visual Client. This option does update,
add and remove files ok.

However, afterwards I do mvn clean (to remove build files), then within P4V
right click folder and do Diff Against/Latest revision versus Workspace version
on local disk. There are many files shown in blue or yellow, indicating
differences.

I want my local workspace to be 100% in sync with the depot.

How do I achieve this?

With subversion I am able to do this fine.



--
Please click here to see the post in its original format:
http://forums.perforce.com/index.php?/topic/1059-sync-local-workspace-with-depot
Jeff Bowles
2011-08-10 09:05:01 UTC
Permalink
Posted on behalf of forum user 'Jeff Bowles'.

Divide-and-conquer this problem.

(1) Into an empty directory, make sure you have run "remove from
workspace" against the top of the tree. Nothing should be there (in the
workspace) afterwards - "rm/delete" anything left at that point.
(2) "sync" (retrieve into workspace), the files/folders.

Now, stop.

You have the tree. Solve the rest of this problem without Perforce. It will
eliminate all questions about what Perforce is doing, relative to maven. You
must be able to say, definitively, that the 'maven' command is not doing
anything strange.

(3) Copy the tree to some other place. I'll call the two trees,
"ORIGINAL" and "COPY".

Now run your maven command against the copy: "change directory the copy,
run the maven command in question."

(4) Compare the two directories. You expect that they are the same. Check. I
don't think they will be the same, and you have a maven build-file to debug.

If it's not that, at least you have something useful to report to tech
support.



--
Please click here to see the post in its original format:
http://forums.perforce.com/index.php?/topic/1059-sync-local-workspace-with-depot
Loading...