On Thu, Apr 10, 2008 at 1:54 PM, himanshu ranavat
<himanshu_ranavat_at_rediffmail.com> wrote:
> I am facing two frequent problems at work and cannot find a way to approach
> the problem. Any help will be appreciated:
>
> 1. I added a new file to my workspace and made many changes to it in
> Eclipse. However, when I create a patch there a lines that begin with a "-"
> which means these lines were removed. However, its a complete new file and
> there should be a '+' sign before each line. It looks like Subclipse is
> making comparisons with the previous versions for new files. Patches on
> files that exist in the repository work fine
>
> 2. When I make a patch, it includes the local path of the files in the patch
> instead of a path relative to the module
Subclipse does not technically create patches. We run the Subversion
diff API and it creates the patch. I have never experienced a problem
with new files in patches, so am not sure what your #1 could be. #2
is a limitation of the API and the way it is executed. Subversion 1.5
enhanced the API for us so that we can produce relative path patches.
The Apply Patch wizard provided by Eclipse can handle full paths in
the patch though. That being said, when the paths are relative it is
a lot easier to apply them so we were happy to get this API change
into Subversion.
--
Thanks
Mark Phippard
http://markphip.blogspot.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subclipse.tigris.org
For additional commands, e-mail: users-help_at_subclipse.tigris.org
Received on 2008-04-10 20:09:50 CEST