Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » [CVS] modify multiple branches
[CVS] modify multiple branches [message #43985] Thu, 22 May 2003 12:23 Go to next message
Eclipse UserFriend
Originally posted by: patjlm.hotmail.com

Hi,

Is there an easy way to do a change in several branches at the same time.

Say, we have branch1, branch2 and HEAD.
We modify some source files in branch1 and want to report the changes in
branch2 and HEAD.

I see that there is a merge option. But it does not seem to report only my
changes, but all changes (from all developers) since the beginning of the
branch.

There is also the patch option (create a patch before commiting, and
applying this patch in all subsequent branches). But I am not sure how safe
/ easy it is.

Any input appreciated.

Thanks,

Patrick.
Re: [CVS] modify multiple branches [message #45342 is a reply to message #43985] Fri, 23 May 2003 08:31 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: bob.news.gmx.net

You can make a patch of your changes before checkin and apply it to the
other branch(es).

robert

"Patrick Martin" <patjlm@hotmail.com> schrieb im Newsbeitrag
news:baitir$th3$1@rogue.oti.com...
> Hi,
>
> Is there an easy way to do a change in several branches at the same
time.
>
> Say, we have branch1, branch2 and HEAD.
> We modify some source files in branch1 and want to report the changes in
> branch2 and HEAD.
>
> I see that there is a merge option. But it does not seem to report only
my
> changes, but all changes (from all developers) since the beginning of
the
> branch.
>
> There is also the patch option (create a patch before commiting, and
> applying this patch in all subsequent branches). But I am not sure how
safe
> / easy it is.
>
> Any input appreciated.
>
> Thanks,
>
> Patrick.
>
>
Re: [CVS] modify multiple branches [message #45395 is a reply to message #45342] Fri, 23 May 2003 08:44 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: patjlm.hotmail.com

Thanks for your answer,

Is that the only way?

Or is it possible to have eclipse check stuff just before commiting?

My idea would be that when a developer chooses to commit one or several
files in a branch, eclipse could realize it and offer to create a patch, or
even to try to apply this patch in an other branch.

Would this be possible? Did anyone have an experience with this kind of
things?

Thank you,

Patrick

"Robert Klemme" <bob.news@gmx.net> wrote in message
news:bal4dt$h5k$1@rogue.oti.com...
>
> You can make a patch of your changes before checkin and apply it to the
> other branch(es).
>
> robert
>
> "Patrick Martin" <patjlm@hotmail.com> schrieb im Newsbeitrag
> news:baitir$th3$1@rogue.oti.com...
> > Hi,
> >
> > Is there an easy way to do a change in several branches at the same
> time.
> >
> > Say, we have branch1, branch2 and HEAD.
> > We modify some source files in branch1 and want to report the changes in
> > branch2 and HEAD.
> >
> > I see that there is a merge option. But it does not seem to report only
> my
> > changes, but all changes (from all developers) since the beginning of
> the
> > branch.
> >
> > There is also the patch option (create a patch before commiting, and
> > applying this patch in all subsequent branches). But I am not sure how
> safe
> > / easy it is.
> >
> > Any input appreciated.
> >
> > Thanks,
> >
> > Patrick.
> >
> >
>
Re: [CVS] modify multiple branches [message #46340 is a reply to message #45395] Fri, 23 May 2003 12:37 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: bob.news.gmx.net

"Patrick Martin" <patjlm@hotmail.com> schrieb im Newsbeitrag
news:bal53s$hl3$1@rogue.oti.com...
> Thanks for your answer,
>
> Is that the only way?
>
> Or is it possible to have eclipse check stuff just before commiting?
>
> My idea would be that when a developer chooses to commit one or several
> files in a branch, eclipse could realize it and offer to create a patch,
or
> even to try to apply this patch in an other branch.

That's a very specialized application of patches. You normally don't
commit the same change on several branches. If you have to, you should
reconsider the way you work with CVS - or maybe get another SCCS.

> Would this be possible? Did anyone have an experience with this kind of
> things?

It certainly would be possible to do that. But I doubt that it has a
change being realized. IMHO it's too special. You *have* the option to
create branches in CVS because you want to separate development
activities. By automatically commiting changes from one branch to another
the whole concept of branches is questionable...

Regards

robert

>
> Thank you,
>
> Patrick
>
> "Robert Klemme" <bob.news@gmx.net> wrote in message
> news:bal4dt$h5k$1@rogue.oti.com...
> >
> > You can make a patch of your changes before checkin and apply it to
the
> > other branch(es).
> >
> > robert
> >
> > "Patrick Martin" <patjlm@hotmail.com> schrieb im Newsbeitrag
> > news:baitir$th3$1@rogue.oti.com...
> > > Hi,
> > >
> > > Is there an easy way to do a change in several branches at the same
> > time.
> > >
> > > Say, we have branch1, branch2 and HEAD.
> > > We modify some source files in branch1 and want to report the
changes in
> > > branch2 and HEAD.
> > >
> > > I see that there is a merge option. But it does not seem to report
only
> > my
> > > changes, but all changes (from all developers) since the beginning
of
> > the
> > > branch.
> > >
> > > There is also the patch option (create a patch before commiting, and
> > > applying this patch in all subsequent branches). But I am not sure
how
> > safe
> > > / easy it is.
> > >
> > > Any input appreciated.
> > >
> > > Thanks,
> > >
> > > Patrick.
> > >
> > >
> >
>
>
Re: [CVS] modify multiple branches [message #46491 is a reply to message #46340] Fri, 23 May 2003 13:41 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eric.rizzo.jibeinc.com

Robert Klemme wrote:
> That's a very specialized application of patches. You normally don't
> commit the same change on several branches. If you have to, you should
> reconsider the way you work with CVS - or maybe get another SCCS.
[snip]
> It certainly would be possible to do that. But I doubt that it has a
> change being realized. IMHO it's too special. You *have* the option to
> create branches in CVS because you want to separate development
> activities. By automatically commiting changes from one branch to another
> the whole concept of branches is questionable...

I have to disagree. A common use of branching is when a product/project
has a release point - you label and branch at the release point in order
to have maintenance of that release and new development for the next
release happen in parallel. If a bug is found and fixed on the
maintenance branch, it is likely the same fix will need to be applied to
the HEAD so the next version does not resurrect the bug.

Eric
--
Eric Rizzo
Software Architect
Jibe, Inc.
http://www.jibeinc.com
Re: [CVS] modify multiple branches [message #47198 is a reply to message #46491] Sat, 24 May 2003 04:04 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: arnout.standaert.n-o-s-p-a-m.cit.kuleuven.ac.be

Eric Rizzo <eric.rizzo@jibeinc.com> wrote:

> Robert Klemme wrote:
>> That's a very specialized application of patches. You normally
>> don't commit the same change on several branches. If you have
>> to, you should reconsider the way you work with CVS - or maybe
>> get another SCCS.
> [snip]
>> It certainly would be possible to do that. But I doubt that it
>> has a change being realized. IMHO it's too special. You
>> *have* the option to create branches in CVS because you want to
>> separate development activities. By automatically commiting
>> changes from one branch to another the whole concept of
>> branches is questionable...
>
> I have to disagree. A common use of branching is when a
> product/project has a release point - you label and branch at
> the release point in order to have maintenance of that release
> and new development for the next release happen in parallel. If
> a bug is found and fixed on the maintenance branch, it is likely
> the same fix will need to be applied to the HEAD so the next
> version does not resurrect the bug.

OK, but on my CVS I have two separate versions of a simulation
program that shouldn't mangle changes because they handle slightly
different problems.
In any case, the multiple branch committing should remain a non-
default option IMHO.

Regards,
Wald
Re: [CVS] modify multiple branches [message #47729 is a reply to message #47198] Mon, 26 May 2003 03:11 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: patjlm.hotmail.com

Hi,

I agree that it should no be a default. It is a specific matter.
However, I am sure many team work this way (having branches for maintenance
releases and having to commit some fixes in several branches).
I don't know anything in plugin developments in Eclipse. Is it hard to
optionnaly insert a check in the commit action? This check would see if the
commit is being performed in a branch and automatically offer to generate a
cvs patch.

Regards,
Patrick.


"Wald" <arnout.standaert@n-o-s-p-a-m.cit.kuleuven.ac.be> wrote in message
news:Xns9385668CD2D35arnoutstandaertagrku@204.138.98.10...
> Eric Rizzo <eric.rizzo@jibeinc.com> wrote:
>
> > Robert Klemme wrote:
> >> That's a very specialized application of patches. You normally
> >> don't commit the same change on several branches. If you have
> >> to, you should reconsider the way you work with CVS - or maybe
> >> get another SCCS.
> > [snip]
> >> It certainly would be possible to do that. But I doubt that it
> >> has a change being realized. IMHO it's too special. You
> >> *have* the option to create branches in CVS because you want to
> >> separate development activities. By automatically commiting
> >> changes from one branch to another the whole concept of
> >> branches is questionable...
> >
> > I have to disagree. A common use of branching is when a
> > product/project has a release point - you label and branch at
> > the release point in order to have maintenance of that release
> > and new development for the next release happen in parallel. If
> > a bug is found and fixed on the maintenance branch, it is likely
> > the same fix will need to be applied to the HEAD so the next
> > version does not resurrect the bug.
>
> OK, but on my CVS I have two separate versions of a simulation
> program that shouldn't mangle changes because they handle slightly
> different problems.
> In any case, the multiple branch committing should remain a non-
> default option IMHO.
>
> Regards,
> Wald
Re: [CVS] modify multiple branches [message #47887 is a reply to message #46491] Mon, 26 May 2003 05:33 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: bob.news.gmx.net

"Eric Rizzo" <eric.rizzo@jibeinc.com> schrieb im Newsbeitrag
news:balmld$219$1@rogue.oti.com...
> Robert Klemme wrote:
> > That's a very specialized application of patches. You normally don't
> > commit the same change on several branches. If you have to, you
should
> > reconsider the way you work with CVS - or maybe get another SCCS.
> [snip]
> > It certainly would be possible to do that. But I doubt that it has a
> > change being realized. IMHO it's too special. You *have* the option
to
> > create branches in CVS because you want to separate development
> > activities. By automatically commiting changes from one branch to
another
> > the whole concept of branches is questionable...
>
> I have to disagree. A common use of branching is when a product/project
> has a release point - you label and branch at the release point in order
> to have maintenance of that release and new development for the next
> release happen in parallel. If a bug is found and fixed on the
> maintenance branch, it is likely the same fix will need to be applied to
> the HEAD so the next version does not resurrect the bug.

Sounds reasonable. Maybe then better file a feature request for this.

robert
Re: [CVS] modify multiple branches [message #48006 is a reply to message #47887] Mon, 26 May 2003 06:48 Go to previous message
Eclipse UserFriend
Originally posted by: patjlm.hotmail.com

Hi,

I created #38042 for that. Anybody welcome to vote and comment.

However, I'd like to try to work on a plugin that would do that (so it is
available before the next stable release). The problem is that I don't know
anything (yet) about plugins. For example, how does one catch the "cvs
commit" event?

Patrick.

"Robert Klemme" <bob.news@gmx.net> wrote in message
news:basnla$of2$1@rogue.oti.com...
>
> "Eric Rizzo" <eric.rizzo@jibeinc.com> schrieb im Newsbeitrag
> news:balmld$219$1@rogue.oti.com...
> > Robert Klemme wrote:
> > > That's a very specialized application of patches. You normally don't
> > > commit the same change on several branches. If you have to, you
> should
> > > reconsider the way you work with CVS - or maybe get another SCCS.
> > [snip]
> > > It certainly would be possible to do that. But I doubt that it has a
> > > change being realized. IMHO it's too special. You *have* the option
> to
> > > create branches in CVS because you want to separate development
> > > activities. By automatically commiting changes from one branch to
> another
> > > the whole concept of branches is questionable...
> >
> > I have to disagree. A common use of branching is when a product/project
> > has a release point - you label and branch at the release point in order
> > to have maintenance of that release and new development for the next
> > release happen in parallel. If a bug is found and fixed on the
> > maintenance branch, it is likely the same fix will need to be applied to
> > the HEAD so the next version does not resurrect the bug.
>
> Sounds reasonable. Maybe then better file a feature request for this.
>
> robert
>
Previous Topic:some problem in getting a file from Project or some Folder
Next Topic:[ANN] metrics release 1.2.0 available
Goto Forum:
  


Current Time: Mon Jul 07 06:44:35 EDT 2025

Powered by FUDForum. Page generated in 0.18860 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top