Mercurial > hg
changeset 858:c333dfa8fa1a
[PATCH] Move default page name into map file
Move default page name from code into the map file. This way, different
hgweb styles/themes are free to select their default (no cmd in args)
page.
author | Jeff Sipek <jeffpc@optonline.net> |
---|---|
date | Mon, 08 Aug 2005 19:49:48 -0800 |
parents | 41b344235bb7 |
children | 6390c377a9e6 8ccbac05cf59 |
files | mercurial/hgweb.py templates/map |
diffstat | 2 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/hgweb.py Mon Aug 08 19:49:34 2005 -0800 +++ b/mercurial/hgweb.py Mon Aug 08 19:49:48 2005 -0800 @@ -622,7 +622,10 @@ "footer":footer, }) - if not args.has_key('cmd') or args['cmd'][0] == 'changelog': + if not args.has_key('cmd'): + args['cmd'] = [self.t.cache['default'],] + + if args['cmd'][0] == 'changelog': c = self.repo.changelog.count() - 1 hi = c if args.has_key('rev'):