mercurial/hgweb.py
changeset 1627 11cd38286fdb
parent 1626 f2b1df3dbcbb
child 1637 3b1b44b917f4
equal deleted inserted replaced
1626:f2b1df3dbcbb 1627:11cd38286fdb
   225         for t in self.repo.nodetags(node):
   225         for t in self.repo.nodetags(node):
   226              yield self.t(t1, tag=t, **args)
   226              yield self.t(t1, tag=t, **args)
   227 
   227 
   228     def diff(self, node1, node2, files):
   228     def diff(self, node1, node2, files):
   229         def filterfiles(filters, files):
   229         def filterfiles(filters, files):
   230             l = [x for x in list if x in filters]
   230             l = [x for x in files if x in filters]
   231 
   231 
   232             for t in filters:
   232             for t in filters:
   233                 if t[-1] != os.sep:
   233                 if t and t[-1] != os.sep:
   234                     t += os.sep
   234                     t += os.sep
   235                 l += [x for x in files if x.startswith(t)]
   235                 l += [x for x in files if x.startswith(t)]
   236             return l
   236             return l
   237 
   237 
   238         parity = [0]
   238         parity = [0]