# HG changeset patch # User Dirkjan Ochtman # Date 1231092782 -3600 # Node ID de16a665754ce78a46fcb8b5d1f131d8e73c29ea # Parent 489c2cfbdd712fdef7aa2c42b81fad89388ffc9c# Parent 5f162f61e4798d89bee6127e7e7819cc55bb7883 merge with crew-stable diff -r 489c2cfbdd71 -r de16a665754c mercurial/graphmod.py --- a/mercurial/graphmod.py Sun Jan 04 19:12:42 2009 +0100 +++ b/mercurial/graphmod.py Sun Jan 04 19:13:02 2009 +0100 @@ -26,6 +26,9 @@ - The changeset date/time """ + if start_rev == nullrev and not stop_rev: + return + assert start_rev >= stop_rev assert stop_rev >= 0 curr_rev = start_rev diff -r 489c2cfbdd71 -r de16a665754c mercurial/hgweb/webcommands.py --- a/mercurial/hgweb/webcommands.py Sun Jan 04 19:12:42 2009 +0100 +++ b/mercurial/hgweb/webcommands.py Sun Jan 04 19:13:02 2009 +0100 @@ -292,7 +292,7 @@ break h[None] = None # denotes files present - if not files and not dirs: + if mf and not files and not dirs: raise ErrorResponse(HTTP_NOT_FOUND, 'path not found: ' + path) def filelist(**map): diff -r 489c2cfbdd71 -r de16a665754c tests/test-hgweb-empty --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/test-hgweb-empty Sun Jan 04 19:13:02 2009 +0100 @@ -0,0 +1,12 @@ +#!/bin/sh +# Some tests for hgweb in an empty repository + +hg init test +cd test +hg serve -n test -p $HGPORT -d --pid-file=hg.pid -A access.log -E errors.log +cat hg.pid >> $DAEMON_PIDS + +("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/shortlog') +("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/log') +("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/graph') +("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/file') diff -r 489c2cfbdd71 -r de16a665754c tests/test-hgweb-empty.out --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/test-hgweb-empty.out Sun Jan 04 19:13:02 2009 +0100 @@ -0,0 +1,348 @@ +200 Script output follows + + + + + + + + + +test: log + + + + + +
+ + +
+

test

+

log

+ + + + + + + + + + + + +
ageauthordescription
+ + +
+
+ + + + + + +200 Script output follows + + + + + + + + + +test: log + + + + + +
+ + +
+

test

+

log

+ + + + + + + + + + + + +
ageauthordescription
+ + +
+
+ + + + + + +200 Script output follows + + + + + + + + + +test: revision graph + + + + + + +
+ + +
+

test

+

graph

+ + + + + + + +
+
    + +
      +
      + + + + + + +
      +
      + + + + + + +200 Script output follows + + + + + + + + + +test: 000000000000 / + + + +
      + + +
      +

      test

      +

      directory / @ -1:000000000000 tip

      + + + + + + + + + + + + + + + + +
      namesizepermissions
      [up]drwxr-xr-x
      +
      +
      + + + + +