I am attempting to upgrade to the latest-and-greatest and am now
running into this exact same problem.
post-review under cygwin (under DOS).
It looks like the "p4 where" command is returning a DOS style path,
and then if you look in a redirected differences output file, all the
letters are scrunched together with the '\' characters missing.
--- /cygdrive/c/DOCUME~1/APETER~1/LOCALS~1/Temp/Device.cpp 2008-08-12
10:52:53.549697400 -0700
+++ c:companyproductcoresrcwin32desktopDevice.cpp 1969-12-31
16:00:00.000000000 -0800
... and of course, the +++ file does not exist.
On Oct 9, 5:55 pm, "Christian Hammond" <
chip...@chipx86.com> wrote:
> Interesting. It could be that there's assumptions being made that confuse
> post-review when running inside the cygwin shell instead of a DOS prompt on
> Windows. The file paths look very inconsistent. One file is UNIX-style
> (/foo/bar), whereas the other is a mix of Windows (C:\...) and then partly
> UNIX. It's probably due to where we're getting these paths and how we're
> concatenating them.
>
> Can you run the same command in a DOS box and see what happens?
>
> Christian
>
> --
> Christian Hammond -
chip...@chipx86.com
> VMware, Inc.
>
>
>
> On Thu, Oct 9, 2008 at 5:45 PM, Amit Mokal <
amitmo...@gmail.com> wrote:
>
> > Hi
>
> > I would like to thank you for developing review board.
>
> > I am using review board with perforce.
> > When I use the post-review script I get the error
> > "Unable to parse diff header:"
>
> > Running the script with debug set to True gives
>
> > -----------------------------------------------------------------------------
> > $ python post-review.py 52004
> > >>> svn info
> > >>> p4 info
> > >>> repository info: Path:
milan.engdlp.symantec.com:1666, Base path:
> > None, Supports changesets: True
> > >>> Repository info 'Path:
milan.engdlp.symantec.com:1666, Base path:
> > None, Supports changesets: True'
> > >>> Generating diff for changenum 52004
> > >>> p4 describe -s 52004
> > >>> Processing edit of
> > //depot/Vontu9/dev/native/src/endpoint/Agent/DetectionCore/ExecutionGraphStatePool.cpp
> > >>> Writing
> > "//depot/Vontu9/dev/native/src/endpoint/Agent/DetectionCore/ExecutionGraphStatePool.cpp#2"
> > to "/c/DOCUME~1/ADMINI~1/LOCALS~1/Temp/tmpkWJo
> > L"
> > >>> p4 print -q
> > //depot/Vontu9/dev/native/src/endpoint/Agent/DetectionCore/ExecutionGraphStatePool.cpp#2
> > >>> p4 where
> > //depot/Vontu9/dev/native/src/endpoint/Agent/DetectionCore/ExecutionGraphStatePool.cpp
> > >>> diff -urNp /c/DOCUME~1/ADMINI~1/LOCALS~1/Temp/tmpkWJoCL
> > C:/dev/sources\Vontu9\dev\native\src\endpoint\Agent\DetectionCore\ExecutionGraphStatePool
> > cpp
>
> > +++ C:/dev/sources\Vontu9\dev\native\src\endpoint\Agent\DetectionCore
> > \ExecutionGraphStatePool.cpp
>
> > Unable to parse diff header: +++ C:/dev/sources\Vontu9\dev\native\src
> > \endpoint\Agent\DetectionCore\ExecutionGraphStatePool.cpp
>
> > ----------------------------------------------------------------------------
>
> > My environment is cygwin. I am using
> > python 2.5.1
> > diffutils 2.8.7
>
> > If I copy paste the diff command to the command line and save the
> > output to a file I actually see a timestamp. However when the script
> > executes the command the time stamp is missing.
>
> > Thanks
> > Amit- Hide quoted text -
>
> - Show quoted text -