# HG changeset patch # User Benoit Boissinot # Date 1231521173 -3600 # Node ID 7b554c6ad3906d6454ea79f4dd74579e5b585463 # Parent b9bd6f789633db3b91b71dfc6109924fb1d7b24a# Parent 069b29656401d59a62cb777465ad3f123925e3f0 merge with -stable diff -r b9bd6f789633 -r 7b554c6ad390 mercurial/hgweb/webcommands.py --- a/mercurial/hgweb/webcommands.py Fri Jan 09 01:37:54 2009 +0100 +++ b/mercurial/hgweb/webcommands.py Fri Jan 09 18:12:53 2009 +0100 @@ -545,23 +545,24 @@ def entries(limit=0, **map): l = [] + repo = web.repo for i in xrange(start, end): - ctx = fctx.filectx(i) + iterfctx = fctx.filectx(i) l.insert(0, {"parity": parity.next(), "filerev": i, "file": f, - "node": hex(ctx.node()), - "author": ctx.user(), - "date": ctx.date(), - "rename": webutil.renamelink(fctx), - "parent": webutil.siblings(fctx.parents()), - "child": webutil.siblings(fctx.children()), - "desc": ctx.description(), - "tags": webutil.nodetagsdict(web.repo, ctx.node()), - "branch": webutil.nodebranchnodefault(ctx), - "inbranch": webutil.nodeinbranch(web.repo, ctx), - "branches": webutil.nodebranchdict(web.repo, ctx)}) + "node": hex(iterfctx.node()), + "author": iterfctx.user(), + "date": iterfctx.date(), + "rename": webutil.renamelink(iterfctx), + "parent": webutil.siblings(iterfctx.parents()), + "child": webutil.siblings(iterfctx.children()), + "desc": iterfctx.description(), + "tags": webutil.nodetagsdict(repo, iterfctx.node()), + "branch": webutil.nodebranchnodefault(iterfctx), + "inbranch": webutil.nodeinbranch(repo, iterfctx), + "branches": webutil.nodebranchdict(repo, iterfctx)}) if limit > 0: l = l[:limit] diff -r b9bd6f789633 -r 7b554c6ad390 tests/test-hgweb-filelog --- a/tests/test-hgweb-filelog Fri Jan 09 01:37:54 2009 +0100 +++ b/tests/test-hgweb-filelog Fri Jan 09 18:12:53 2009 +0100 @@ -16,6 +16,9 @@ hg rm a hg ci -m "del2 a" +hg mv b c +hg ci -m "mv b" + hg log -p hg serve -n test -p $HGPORT -d --pid-file=hg.pid -E errors.log @@ -36,5 +39,8 @@ echo % before addition - error ("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/log/0/a') +echo % should show base link, use spartan because it shows it +("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/log/tip/c?style=spartan') + echo % errors cat errors.log diff -r b9bd6f789633 -r 7b554c6ad390 tests/test-hgweb-filelog.out --- a/tests/test-hgweb-filelog.out Fri Jan 09 01:37:54 2009 +0100 +++ b/tests/test-hgweb-filelog.out Fri Jan 09 18:12:53 2009 +0100 @@ -1,8 +1,24 @@ adding b adding a adding a +changeset: 5:a3b6a9e4507e +tag: tip +user: test +date: Thu Jan 01 00:00:00 1970 +0000 +summary: mv b + +diff -r 52e848cdcd88 -r a3b6a9e4507e b +--- a/b Thu Jan 01 00:00:00 1970 +0000 ++++ /dev/null Thu Jan 01 00:00:00 1970 +0000 +@@ -1,1 +0,0 @@ +-b +diff -r 52e848cdcd88 -r a3b6a9e4507e c +--- /dev/null Thu Jan 01 00:00:00 1970 +0000 ++++ b/c Thu Jan 01 00:00:00 1970 +0000 +@@ -0,0 +1,1 @@ ++b + changeset: 4:52e848cdcd88 -tag: tip user: test date: Thu Jan 01 00:00:00 1970 +0000 summary: del2 a @@ -435,4 +451,73 @@ +% should show base link, use spartan because it shows it +200 Script output follows + + + + + + + + +test: c history + + + + + +
+changelog +shortlog +graph +tags +file +annotate +rss +atom +
+ +

c revision history

+ +

navigate: (0) tip

+ + + + + + + + + + + + + + + + + + +
many years ago:mv b
revision 0: + + a3b6a9e4507e + (diff) + (annotate) +
base:b@1e88685f5dde
author:test
date:Thu Jan 01 00:00:00 1970 +0000
+ + + + + + + + + + % errors