[p4] [P4] Remaking a branch.
Matt Janulewicz
matt.janulewicz at lucasfilm.com
Thu Aug 20 15:48:37 PDT 2009
I think the pain of re-pointing client specs is far easier to get
through than worrying about (and more than likely messing up) any
subsequent merges to DEV.
"The work done in DEV contains lots of changes but is no longer useful
to us."
Then for all intents and purposes, this is different code and should be
called something else on a different branch. You're basically proposing
a branch that has a certain history and purpose, then at some point in
time switches to a useful set of code with a different purpose. Not good.
It seems like your intuition is telling you that this is not the right
way to go. Listen to it. Oooooooommmmmmmm. Be Zen and create a new DEV
branch that is named something more descriptive. :)
When you move on to upper-management and all your current developers
have been promoted, the new crew will thank you for not making a weird,
hybrid branch of mixed-purpose. You have to think about the future as
well as the past.
Oooooooooommmmmmmmmmmm.
-Matt
Justin wrote:
>
> That was one of my first thoughts too :)
>
> However, we'd like to keep using DEV; it's simpler for the end-users
> (nothing's changed on their POV), we don't have to repoint clientspecs,
> revision history is preserved in a natural way, etc etc.
>
> My hope is that some sort of recipe exists for remaking branches. If it's
> not possible, then that's just as interesting... :)
>
>
> Cheers,
>
>
> Justin
>
>
>
> On Thu, Aug 20, 2009 at 10:41 PM, Dave Lewis <dlewis78731 at gmail.com>
> wrote:
>
> > just create a "DEV2" branch, then no issues whatsoever!
> >
> >
> > On Thu, Aug 20, 2009 at 12:02 PM, Justin<nockmss at gmail.com> wrote:
> > > Hi there, I have a question regarding "remaking" an existing
> branch and
> > hope
> > > to get some help.
> > >
> > >
> > > Let's say I have two branches, where DEV is originally branched from
> > MAIN.
> > > //depot/MAIN/...
> > > //depot/DEV/...
> > >
> > > The work done in DEV contains lots of changes but is no longer
> useful to
> > us.
> > > Basically we want to start DEV all over again as a fresh branch from
> > MAIN,
> > > but without obliterating DEV.
> > > So far, I've deleted DEV by executing 'p4 delete //depot/DEV/...'. Was
> > that
> > > a mistake? What should I do next? I'm thinking of integrating
> MAIN->DEV
> > > next.
> > >
> > > My main question, is whether there's scope for unresolved changes
> > existing
> > > in MAIN or DEV which will haunt future integrations between the
> branches,
> > > silently causing problems down the road. Am I being too paranoid
> there?
> > >
> > > Thanks,
> > >
> > >
> > > Justin
> > > _______________________________________________
> > > 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
>
More information about the perforce-user
mailing list