[p4] is there way to cause "p4 edit" to automatically sync toheadfirst?

Biswajit Dash biswajitind at yahoo.com
Thu Jun 29 22:49:35 PDT 2006


Correct me if I am wrong.

The situation is like this 
1. users clent is not synched to head. and
2. user wants to sync only a SUBSET of files  [ the
one he is editing ] and not other files which also
might have been updated, in depot.

Will it not cause a inconsistent Code base in his
client workspace, resulting build errors [ in case
there are dependencies in the changes made to the head
revisions ]

I dont think, Its a good idea to do sync for a subset
of files. 

or Does the user wants the entire client workspace to
be sync'ed to head when he edits a single File ?

In that case he is bringing in extra complicacies of
possible conflicts at a point of time when is mentally
prepared to Do edit [ and not resolving conflict] 

Thanks,
Biswajit

Thanks,
Biswajit

--- Jeff Jensen <jeffjensen at upstairstechnology.com>
wrote:

> Especially since P4WSAD does not refresh the list
> periodically in a
> background thread - you cannot rely on the displayed
> status before
> initiating an edit.
> 
> Awhile ago I emailed support with a request to have
> a background thread
> refresh statuses on a user specified interval. 
> Please do same if you are
> interested...
>  
> 
> -----Original Message-----
> From: perforce-user-bounces at perforce.com
> [mailto:perforce-user-bounces at perforce.com] On
> Behalf Of Jeff Grills
> Sent: Thursday, June 29, 2006 12:39 PM
> To: 'David Faison'; perforce-user at perforce.com
> Subject: Re: [p4] is there way to cause "p4 edit" to
> automatically sync
> toheadfirst?
> 
> I don't know of anything like that integrated into
> perforce.  The edit
> operation will issue a warning when editing non-head
> files - I'd think it's
> an Eclipse problem if it doesn't/can't display that
> warning to the user.
> 
> In general, I would consider this a very dangerous
> thing to do when files
> may depend upon each other's content, as they
> typically do in source code.
> If you sync that file to head, it may depend upon
> changes to other files
> that you have not sync'd.  However, this is not too
> different from the case
> where you go to submit, and perforce sync's the
> files and makes the user
> resolve the changes before submitting - you still
> have to get the other
> dependent changes.  It's certainly something that
> you should warn the user
> you're doing for them, and if you do that, then you
> may as well just display
> the warning about editing a non-head file.
> 
> Of course, it would be really nice if Eclipse would
> fstat the file before
> editing it, and then looked at the haveRev and
> headRev and ask the user if
> they want to sync first before editing.  P4win does
> this.
> 
> 
> j
> 
> -----Original Message-----
> From: perforce-user-bounces at perforce.com
> [mailto:perforce-user-bounces at perforce.com] On
> Behalf Of David Faison
> Sent: Thursday, June 29, 2006 12:24 PM
> To: perforce-user at perforce.com
> Subject: [p4] is there way to cause "p4 edit" to
> automatically sync to
> headfirst?
> 
> 
> A user just asked me if there was a way to cause
> Perforce to force a
> sync-to-head before checking a file out. 
> 
> They do most of their work inside of Eclipse, which
> automatically checks
> files out for them as soon as they start to edit
> them, but this makes it
> easy for them to unwittingly edit a non-tip revision
> of the file.
> 
> __________________________
> 
> David Faison, Software Configuration Manager Photon
> Research Associates,
> Inc.
> 
> dfaison at photon.com
> Phone: 703.243.6613
> Fax:   703.243.6619
> 
> _______________________________________________
> perforce-user mailing list  - 
> perforce-user at perforce.com
>
http://maillist.perforce.com/mailman/listinfo/perforce-user
> _______________________________________________
> perforce-user mailing list  - 
> perforce-user at perforce.com
>
http://maillist.perforce.com/mailman/listinfo/perforce-user
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


More information about the perforce-user mailing list