comparison mercurial/hgweb/hgweb_mod.py @ 4745:e21a0e12ff10

hgweb: use lrwxrwxrwx as the permissions of a symlink
author Alexis S. L. Carvalho <alexis@cecm.usp.br>
date Tue, 03 Jul 2007 03:06:40 -0300
parents ecea4de3104e
children 439e2f2fde42 8be7ba425621
comparison
equal deleted inserted replaced
4744:44e17f5029d0 4745:e21a0e12ff10
402 date=fctx.date(), 402 date=fctx.date(),
403 desc=fctx.description(), 403 desc=fctx.description(),
404 parent=self.siblings(fctx.parents()), 404 parent=self.siblings(fctx.parents()),
405 child=self.siblings(fctx.children()), 405 child=self.siblings(fctx.children()),
406 rename=self.renamelink(fl, n), 406 rename=self.renamelink(fl, n),
407 permissions=fctx.manifest().execf(f)) 407 permissions=fctx.manifest().flags(f))
408 408
409 def fileannotate(self, fctx): 409 def fileannotate(self, fctx):
410 f = fctx.path() 410 f = fctx.path()
411 n = fctx.filenode() 411 n = fctx.filenode()
412 fl = fctx.filelog() 412 fl = fctx.filelog()
438 date=fctx.date(), 438 date=fctx.date(),
439 desc=fctx.description(), 439 desc=fctx.description(),
440 rename=self.renamelink(fl, n), 440 rename=self.renamelink(fl, n),
441 parent=self.siblings(fctx.parents()), 441 parent=self.siblings(fctx.parents()),
442 child=self.siblings(fctx.children()), 442 child=self.siblings(fctx.children()),
443 permissions=fctx.manifest().execf(f)) 443 permissions=fctx.manifest().flags(f))
444 444
445 def manifest(self, ctx, path): 445 def manifest(self, ctx, path):
446 mf = ctx.manifest() 446 mf = ctx.manifest()
447 node = ctx.node() 447 node = ctx.node()
448 448
475 475
476 yield {"file": full, 476 yield {"file": full,
477 "parity": parity.next(), 477 "parity": parity.next(),
478 "basename": f, 478 "basename": f,
479 "size": ctx.filectx(full).size(), 479 "size": ctx.filectx(full).size(),
480 "permissions": mf.execf(full)} 480 "permissions": mf.flags(full)}
481 481
482 def dirlist(**map): 482 def dirlist(**map):
483 fl = files.keys() 483 fl = files.keys()
484 fl.sort() 484 fl.sort()
485 for f in fl: 485 for f in fl: