mò óRÅDc@s1dkZdkZdkZd„Zd„ZdS(NcCsqtii|dƒ}tii|dƒ}tiitii|ƒƒoti|ƒiSnti|ƒiSdS(Ns.hgs 00changelog.i( tostpathtjoint repo_paththg_pathtcl_pathtexistststattst_mtime(RRR((t:/usr/lib/python2.4/site-packages/mercurial/hgweb/common.pyt get_mtime s cCs|idƒ}|}xw|D]o}|dtitifjp0ti |jp ti dj oti |jodSntii ||ƒ}qWyfti |ƒti|ƒdpd}|id|fdtii|ƒfgƒt|ƒiƒSWnttfj o dSnXdS(s+return a file inside directory with guessed content-type header fname always uses '/' as directory separator and isn't allowed to contain unusual path components. Content-type is guessed using the mimetypes module. Return an empty string if fname is illegal or file not found. t/tis text/plains Content-typesContent-lengthN(tfnametsplittpartst directoryRtpartRtcurdirtpardirtseptaltseptNoneRRt mimetypest guess_typetcttreqtheadertgetsizetfiletreadt TypeErrortOSError(RR RRRRR((R t staticfilesL +(RRtos.pathR R!(RRR!R ((R t? s