Hi, I want to ask help with an issue with rbt patch + perforce. When I try to apply a patch from review board by using rbt patch, the tool fails with a "can't find the file to patch" error.
$ rbt patch --server https://reviewboard.eng.mydomain.com/ --debug --username hgontijo --repository perforce 674130 >>> RBTools 0.6.2 >>> Python 2.7.5 (default, Mar 9 2014, 22:15:05) [GCC 4.2.1 Compatible Apple LLVM 5.0 (clang-500.0.68)] >>> Running on Darwin-13.3.0-x86_64-i386-64bit >>> Home = /Users/hgontijo >>> Current directory = /Users/hgontijo/Perforce/projects/mydomain/p4/vc/vim-clients/vimclients-2015 >>> Checking for a Subversion repository... >>> Running: svn info --non-interactive >>> Command exited with rc 1: ['svn', 'info', '--non-interactive'] svn: E155007: '/Users/hgontijo/Perforce/projects/mydomain/p4/vc/vim-clients/vimclients-2015' is not a working copy --- >>> Checking for a Git repository... >>> Running: git rev-parse --git-dir >>> Command exited with rc 128: ['git', 'rev-parse', '--git-dir'] fatal: Not a git repository (or any of the parent directories): .git --- >>> Checking for a Mercurial repository... >>> Unable to execute "hg --help": skipping Mercurial >>> Checking for a CVS repository... >>> Unable to execute "cvs": skipping CVS >>> Checking for a Perforce repository... >>> Running: p4 info >>> Running: diff --version >>> repository info: Path: ['perforce-vc.eng.mydomain.com:1648', '43.8.17.10.in-addr.arpa:1648'], Base path: None, Supports changesets: True >>> Making HTTP GET request to https://reviewboard.eng.mydomain.com/api/ ==> HTTP Authentication Required Enter authorization information for "Web API" at reviewboard.eng.mydomain.com Password: >>> Making HTTP GET request to https://reviewboard.eng.mydomain.com/api/info/ >>> Making HTTP GET request to https://reviewboard.eng.mydomain.com/api/review-requests/674130/diffs/ >>> Making HTTP GET request to https://reviewboard.eng.mydomain.com/api/review-requests/674130/diffs/1/ >>> Making HTTP GET request to https://reviewboard.eng.mydomain.com/api/review-requests/674130/diffs/1/ *Patch is being applied from request 674130 with diff revision 1.* *>>> Running: patch -i /var/folders/vj/zkmcf_214hg78y1md49qgm_c002glm/T/tmp54TMeV* *Failed to execute command: ['patch', '-i', '/var/folders/vj/zkmcf_214hg78y1md49qgm_c002glm/T/tmp54TMeV']* *can't find file to patch at input line 3* Perhaps you should have used the -p or --strip option? The text leading up to this was: -------------------------- |--- //depot/vim-clients/vimclients-2015/applications/vsphere-client/server/cm-service/src/main/java/com/mydomain/vsphere/client/cm/util/ServerPropertyValueExtractor.java //depot/vim-clients/vimclients-2015/applications/vsphere-client/server/cm-service/src/main/java/com/mydomain/vsphere/client/cm/util/ServerPropertyValueExtractor.java#42 |+++ //depot/vim-clients/vimclients-2015/applications/vsphere-client/server/cm-service/src/main/java/com/mydomain/vsphere/client/cm/util/ServerPropertyValueExtractor.java 2014-09-24 11:24:26 -------------------------- File to patch: Skip this patch? [y] Skipping patch. 8 out of 8 hunks ignored =========================== I notice that when I execute rbt patch from the file folder, the patch is applied successfully: $ cd applications/vsphere-client/server/cm-service/src/main/java/com/mydomain/vsphere/client/cm/util/ $ rbt patch --server https://reviewboard.eng.mydomain.com/ --debug --username hgontijo --repository perforce 674130 >>> RBTools 0.6.2 >>> Python 2.7.5 (default, Mar 9 2014, 22:15:05) [GCC 4.2.1 Compatible Apple LLVM 5.0 (clang-500.0.68)] >>> Running on Darwin-13.3.0-x86_64-i386-64bit >>> Home = /Users/hgontijo >>> Current directory = /Users/hgontijo/Perforce/projects/mydomain/p4/vc/vim-clients/vimclients-2015/applications/vsphere-client/server/cm-service/src/main/java/com/mydomain/vsphere/client/cm/util >>> Checking for a Subversion repository... >>> Running: svn info --non-interactive >>> Command exited with rc 1: ['svn', 'info', '--non-interactive'] svn: E155007: '/Users/hgontijo/Perforce/projects/mydomain/p4/vc/vim-clients/vimclients-2015/applications/vsphere-client/server/cm-service/src/main/java/com/mydomain/vsphere/client/cm/util' is not a working copy --- >>> Checking for a Git repository... >>> Running: git rev-parse --git-dir >>> Command exited with rc 128: ['git', 'rev-parse', '--git-dir'] fatal: Not a git repository (or any of the parent directories): .git --- >>> Checking for a Mercurial repository... >>> Unable to execute "hg --help": skipping Mercurial >>> Checking for a CVS repository... >>> Unable to execute "cvs": skipping CVS >>> Checking for a Perforce repository... >>> Running: p4 info >>> Running: diff --version >>> repository info: Path: ['perforce-vc.eng.mydomain.com:1648', '43.8.17.10.in-addr.arpa:1648'], Base path: None, Supports changesets: True >>> Making HTTP GET request to https://reviewboard.eng.mydomain.com/api/ ==> HTTP Authentication Required Enter authorization information for "Web API" at reviewboard.eng.mydomain.com Password: >>> Making HTTP GET request to https://reviewboard.eng.mydomain.com/api/info/ >>> Making HTTP GET request to https://reviewboard.eng.mydomain.com/api/review-requests/674130/diffs/ >>> Making HTTP GET request to https://reviewboard.eng.mydomain.com/api/review-requests/674130/diffs/1/ >>> Making HTTP GET request to https://reviewboard.eng.mydomain.com/api/review-requests/674130/diffs/1/ *Patch is being applied from request 674130 with diff revision 1.* *>>> Running: patch -i /var/folders/vj/zkmcf_214hg78y1md49qgm_c002glm/T/tmpV2MA0a* Enviroment info -------------------- Server: P4 P4D/LINUX26X86_64/2014.1/886167 (2014/06/25) Review Board 1.7.6 Client: MacOS 10.9.4 / Darwin-13.3.0-x86_64-i386-64bit RBTools 0.6.2 Python 2.7.5 Any ideas what is causing this? Thanks, Henrique -- Get the Review Board Power Pack at http://www.reviewboard.org/powerpack/ --- Sign up for Review Board hosting at RBCommons: https://rbcommons.com/ --- Happy user? Let us know at http://www.reviewboard.org/users/ --- You received this message because you are subscribed to the Google Groups "reviewboard" group. To unsubscribe from this group and stop receiving emails from it, send an email to reviewboard+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.