[PATCH 1 of 4] Add a test for getting raw files via the web UI

Eric Hopper hopper at omnifarious.org
Fri Jun 30 10:34:17 CDT 2006


On Fri, Jun 30, 2006 at 08:23:27AM -0700, Bryan O'Sullivan wrote:
> On Thu, 2006-06-29 at 19:14 -0700, Eric Hopper wrote:
> 
> > +hg commit -m "Just some text"
> > +hg serve -p 20059 -A access.log -E error.log -d --pid-file=hg.pid
> > +("$TESTDIR/get-with-headers.py" localhost:20059 '/?f=f165dc289438;file=sometext.txt;style=raw' content-type content-length content-disposition) >getoutput.txt &
> 
> This test looks brittle to me.  The reason I ask is that you're
> committing the changeset without a fixed date (look at all the other
> uses of "commit -d '1 0' and so on), so the changeset hash will change
> every time the test is run.  If someone else extends the test later and
> doesn't notice this, they'll probably turn it into something that only
> passes once :-)

Ahh...  OK.  I used the file hash to avoid just that problem, but you're
right, I should probably commit with date information too so the
changeset hash doesn't change.

Have fun (if at all possible),
-- 
"It does me no injury for my neighbor to say there are twenty gods or no God.
It neither picks my pocket nor breaks my leg."  --- Thomas Jefferson
"Go to Heaven for the climate, Hell for the company."  -- Mark Twain
-- Eric Hopper (http://www.omnifarious.org/~hopper) --
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.selenic.com/pipermail/mercurial/attachments/20060630/cd963f48/attachment.pgp


More information about the Mercurial mailing list