linux下的patch命令
我从svn上下载了一个项目,更改了其中一个文件(增加了一个方法注释),然后在window环境下利用svn diff制作出了diff补丁,把补丁上传到linux系统之后准备和原项目进行patch命令,可是却出现以下信息:
cpserver@king:~/web/mywork/PlatformApplication$ patch -p1 <../ff
(Stripping trailing CRs from patch.)
patching file com/cdp/platform/webadmin/taglib/MenuTag.java
Hunk #1 FAILED at 17.
1 out of 1 hunk FAILED -- saving rejects to file com/cdp/platform/webadmin/taglib/MenuTag.java.rej
cpserver@king:~/web/mywork/PlatformApplication$
其中这个ff文件就是我的补丁文件,补丁内容如下:
### Eclipse Workspace Patch 1.0
#P PlatformApplication
Index: src/com/cdp/platform/webadmin/taglib/MenuTag.java
===================================================================
--- src/com/cdp/platform/webadmin/taglib/MenuTag.java (revision 1880)
+++ src/com/cdp/platform/webadmin/taglib/MenuTag.java (working copy)
@@ -17,6 +17,10 @@
import com.cdp.platform.webadmin.service.WebadminService;
+/**
+ * @author hxg
+ *
+ */
public class MenuTag extends AbstractUITag {
private WebadminService webadminService = (WebadminService) AppContext
.getInstance().getAppContext().getBean("webadminService");
请问这个该怎么解决?我这是什么原因造成的?我怎么才能用patch命令把我在本地更改的内容利用patch更新到linux下的项目之中呢???
------解决方案--------------------
帮你顶一下,尽快解决