Mercurial > hg
changeset 1579:85803ec2daab
Remove tabs, and trailing whitespace from hgweb.py
author | Josef "Jeff" Sipek <jeffpc@optonline.net> |
---|---|
date | Mon, 12 Dec 2005 02:05:08 -0500 |
parents | 4a14edbda3ca |
children | 4737b36e324e |
files | mercurial/hgweb.py |
diffstat | 1 files changed, 12 insertions(+), 12 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/hgweb.py Mon Dec 12 01:25:24 2005 -0500 +++ b/mercurial/hgweb.py Mon Dec 12 02:05:08 2005 -0500 @@ -632,8 +632,8 @@ for k,n in i: yield {"parity": parity, "tag": k, - "tagmanifest": hex(cl.read(n)[0]), - "date": cl.read(n)[2], + "tagmanifest": hex(cl.read(n)[0]), + "date": cl.read(n)[2], "node": hex(n)} parity = 1 - parity @@ -650,19 +650,19 @@ def tagentries(**map): parity = 0 - count = 0 + count = 0 for k,n in i: - if k == "tip": # skip tip + if k == "tip": # skip tip continue; count += 1 - if count > 10: # limit to 10 tags + if count > 10: # limit to 10 tags break; c = cl.read(n) m = c[0] t = c[2] - + yield self.t("tagentry", parity = parity, tag = k, @@ -670,7 +670,7 @@ date = t, tagmanifest = hex(m)) parity = 1 - parity - + def changelist(**map): parity = 0 cl = self.repo.changelog @@ -702,15 +702,15 @@ pos = end - 1 yield self.t("summary", - desc = self.repo.ui.config("web", "description", "unknown"), - owner = (self.repo.ui.config("ui", "username") or # preferred + desc = self.repo.ui.config("web", "description", "unknown"), + owner = (self.repo.ui.config("ui", "username") or # preferred self.repo.ui.config("web", "contact") or # deprecated self.repo.ui.config("web", "author", "unknown")), # also - lastchange = (0, 0), # FIXME + lastchange = (0, 0), # FIXME manifest = hex(mf), tags = tagentries, shortlog = changelist) - + def filediff(self, file, changeset): cl = self.repo.changelog n = self.repo.lookup(changeset) @@ -872,7 +872,7 @@ elif req.form['cmd'][0] == 'summary': req.write(self.summary()) - + elif req.form['cmd'][0] == 'filediff': req.write(self.filediff(req.form['file'][0], req.form['node'][0]))