Skip to main content



      Home
Home » Newcomers » Newcomers » CVS patches
CVS patches [message #78976] Sun, 19 June 2005 07:03 Go to next message
Eclipse UserFriend
Originally posted by: hendrik_maryns.despammed.com

Hi,

I recently found out how to set up cvs from Eclipse. I don't have write
acces to the repository, so I have to make patches and send them in via
the bug database.
The problem is: when I right-click a file, and choose Team -> make
patch, this works, but the first line of the patch only gives the file
name, whereas I would like to have its full path in the cvs-tree.
If I use Tortoise outside of Eclipse, it does this just right.
The first few lines look like this:

(Tortoise)
Index: nl/browser/chrome/help/firebird-index1.rdf
============================================================ =======
RCS file: /l10n/l10n/nl/browser/chrome/help/firebird-index1.rdf,v
retrieving revision 1.5
diff -u -r1.5 firebird-index1.rdf
--- nl/browser/chrome/help/firebird-index1.rdf 16 Jun 2005 09:55:45
-0000 1.5
+++ nl/browser/chrome/help/firebird-index1.rdf 19 Jun 2005 10:51:14 -0000
@@ -48,7 +48,7 @@

(Eclipse)
Index: firebird-index1.rdf
============================================================ =======
RCS file: /l10n/l10n/nl/browser/chrome/help/firebird-index1.rdf,v
retrieving revision 1.5
diff -u -r1.5 firebird-index1.rdf
--- firebird-index1.rdf 16 Jun 2005 09:55:45 -0000 1.5
+++ firebird-index1.rdf 19 Jun 2005 10:50:57 -0000
@@ -48,7 +48,7 @@

How can I make Eclipse to give me the same heading as Tortoise (which is
what the bug assignee wants, for ease of applying patches)

Cheers, H.
--
Hendrik Maryns

Interesting websites:
www.lieverleven.be (I cooperate)
www.eu04.com European Referendum Campaign
aouw.org The Art Of Urban Warfare
Re: CVS patches [message #79150 is a reply to message #78976] Mon, 20 June 2005 17:14 Go to previous messageGo to next message
Eclipse UserFriend
Hendrik Maryns schrieb:
> How can I make Eclipse to give me the same heading as Tortoise (which is
> what the bug assignee wants, for ease of applying patches)

Don't right click the file and choose Team - Create Patch, right click
the nl folder and choose Team - Create Patch
Re: CVS patches [message #79207 is a reply to message #79150] Mon, 20 June 2005 18:37 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: hendrik_maryns.despammed.com

Sebastian Brocks uitte de volgende tekst op 20/06/2005 23:14:
> Hendrik Maryns schrieb:
>
>>How can I make Eclipse to give me the same heading as Tortoise (which is
>>what the bug assignee wants, for ease of applying patches)
>
>
> Don't right click the file and choose Team - Create Patch, right click
> the nl folder and choose Team - Create Patch

Thanks, but I have several edited files, and I don't want to create a
patch for all of them, only for that particular file (this is to keep
the patches manageable, but I don't want to wait until it gets patched
to continue working, there are currently about 7 patches pending now...)

Other suggestions?

--
Hendrik Maryns

Interesting websites:
www.lieverleven.be (I cooperate)
www.eu04.com European Referendum Campaign
aouw.org The Art Of Urban Warfare
Re: CVS patches [message #79494 is a reply to message #79207] Wed, 22 June 2005 01:34 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse.rizzoweb.com

Hendrik Maryns wrote:
> Sebastian Brocks uitte de volgende tekst op 20/06/2005 23:14:
>> Don't right click the file and choose Team - Create Patch, right click
>> the nl folder and choose Team - Create Patch
>
> Thanks, but I have several edited files, and I don't want to create a
> patch for all of them, only for that particular file (this is to keep
> the patches manageable, but I don't want to wait until it gets patched
> to continue working, there are currently about 7 patches pending now...)
>
> Other suggestions?

All you have to do is indicate at what level the patch was created when
you submit it. Then whomever is applying can apply it at the same level.
Patches use relative locations, so as long as someone knows where the
root at which it was created, it will work if they apply it at the same
root.

Another option that is more work for you would be to create a patch of
all your changes from the project root, then revert the project back to
the CVS version, then apply your own patch only accepting the one file
you are interested in (Eclipse lets you select which files to include
when applying a patch), then create a new patch from the root that will
only include the one file that was changed when you applied your first
patch. Problem is that this is a bit of work and must be repeated for
every different patch you want to create.

No matter what, you should search the Bugzilla database to see if anyone
has entered an enhancement request for the option of selecting files for
inclusion/exclusion during patch creation. If no such request exists,
enter one yourself. That is how Eclipse moves forward - users requesting
changes.

HTH,
Eric
Re: CVS patches [message #79627 is a reply to message #79494] Wed, 22 June 2005 07:31 Go to previous message
Eclipse UserFriend
Originally posted by: hendrik_maryns.despammed.com

Eric Rizzo uitte de volgende tekst op 22/06/2005 7:34:
> Hendrik Maryns wrote:
>
>> Sebastian Brocks uitte de volgende tekst op 20/06/2005 23:14:
>>
>>> Don't right click the file and choose Team - Create Patch, right click
>>> the nl folder and choose Team - Create Patch
>>
>>
>> Thanks, but I have several edited files, and I don't want to create a
>> patch for all of them, only for that particular file (this is to keep
>> the patches manageable, but I don't want to wait until it gets patched
>> to continue working, there are currently about 7 patches pending now...)
>>
>> Other suggestions?
>
>
> All you have to do is indicate at what level the patch was created when
> you submit it. Then whomever is applying can apply it at the same level.
> Patches use relative locations, so as long as someone knows where the
> root at which it was created, it will work if they apply it at the same
> root.
>
> Another option that is more work for you would be to create a patch of
> all your changes from the project root, then revert the project back to
> the CVS version, then apply your own patch only accepting the one file
> you are interested in (Eclipse lets you select which files to include
> when applying a patch), then create a new patch from the root that will
> only include the one file that was changed when you applied your first
> patch. Problem is that this is a bit of work and must be repeated for
> every different patch you want to create.
>
> No matter what, you should search the Bugzilla database to see if anyone
> has entered an enhancement request for the option of selecting files for
> inclusion/exclusion during patch creation. If no such request exists,
> enter one yourself. That is how Eclipse moves forward - users requesting
> changes.

I'll do this, and use Tortoise to create the patches in the meantime...

Thanks

--
Hendrik Maryns

Interesting websites:
www.lieverleven.be (I cooperate)
www.eu04.com European Referendum Campaign
aouw.org The Art Of Urban Warfare
Previous Topic:software updates through eclipse
Next Topic:JAR/Source out of date w/Ant build
Goto Forum:
  


Current Time: Sun May 11 14:51:16 EDT 2025

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

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

Back to the top