[DUG] Source Control - Sharing files between projects

David Brennan dugdavid at dbsolutions.co.nz
Thu Oct 11 15:44:37 NZDT 2007


Hi Paul,

Sorry to resurrect an oldish thread but...

I've been told by a couple of the guys here who were reviewing the Perforce
Trial that the merge/resolve tool which comes with Perforce is "crap". They
then qualified it by saying that if you were used to text only unix compare
programs then you might like it. As we are used to nice graphical three
panel compare/merge programs (ie version1 left, version2 right, merged
bottom) this isn't really us.

What merge/resolve tool do you (and others) use for Perforce? The built in
Perforce text only tool or a 3rd party tool? Or have we missed something
(keeping in mind that I haven't actually seen what they are talking about
myself yet!)

Thanks,
David.



-----Original Message-----
From: delphi-bounces at delphi.org.nz [mailto:delphi-bounces at delphi.org.nz] On
Behalf Of Paul Heinz
Sent: Wednesday, 26 September 2007 10:14 p.m.
To: NZ Borland Developers Group - Delphi List
Subject: RE: [DUG] Source Control - Sharing files between projects

Berend wrote: 

> Exactly, you branch the /Reference/Core1 to /Project1/Core1
> 
>     David> But my interpretation of your model is that you are relying
>     David> on editing each of the core files within the Reference
>     David> branches and then merging through to the Project
>     David> branches.
> 
> No, the reverse. You edit /Project1/Core1 and merge the 
> changes back to /Reference/Core1 when stable/convenient.
> 
> Perforce handles such merge back really well, unlike more 
> primitive tools.
> 
>     David> Furthermore it is while editing one of the projects that
>     David> you would want to change one of the core files. 
> 
> And you do it exactly there.
> 
>     David> And if developers are editing the core files a various
>     David> project branches then how do you get each of these changes
>     David> reliably merged into the other 7 projects?
> 
> You merge the /Project1/Core1 into /Reference/Core1. Project2 
> developers can merge newer versions of /Reference/Core1 into
> /Project2/Core1 when convenient.
> 
> 
>     David> Unless there is some easy way of automating or at least
>     David> semi-automating this in Perforce?
> 
> Perforce won't bother you with merges you already did.

Just for completeness, note that you don't have to do it this way - i.e.
with lots of merging back and forth, although Berend is correct,
Perforce is *very good* at handling merging, especially in both
directions.

You can have the _exact same_ versioned files checked out into multiple
project workspaces without any branching or merging - just workspace
mappings. Then, _any changes_ committed to those shared files are
changing those files for _all projects_ with no merging back and forth
necessary. 

That may not be the model you desire however as the branch and merge
model does provide more change isolation. Perforce supports both ways of
working, essentially.

TTFN,
  Paul.


_______________________________________________
NZ Borland Developers Group - Delphi mailing list
Post: delphi at delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-request at delphi.org.nz with Subject:
unsubscribe



More information about the Delphi mailing list