• Home
  • History
  • Annotate
  • Raw
  • Download

Lines Matching +full:rev +full:- +full:parse

3 This is a CGI program that maintains a user-editable FAQ.  It uses RCS
10 The actual script to place in cgi-bin is faqw.py.
71 r'\b(http|ftp|https)://\S+(\b|/)|\b[-.\w]+@[-.\w]+')
84 while url[-1] in '();:,.?\'"<>':
85 url = url[:-1]
101 return re.sub(r'\*([a-zA-Z]+)\*', r'<I>\1</I>', line)
105 def revparse(rev): argument
109 m = revparse_prog.match(rev)
146 author = '/'.join(words[:-2])
147 email = words[-2]
148 password = words[-1]
160 path = os.environ.get('SCRIPT_NAME', '/cgi-bin/')
161 print "Set-Cookie: %s=%s; path=%s;" % (name, value, path),
162 print time.strftime("expires=%a, %d-%b-%y %X GMT", gmt)
220 key = '-'.join(name.split('_'))
254 if mtime >= now - DT_VERY_RECENT:
256 elif mtime >= now - DT_RECENT:
333 def parse(self, file): member in FaqDir
346 sec_num = self.parse(file)
366 sec, num = self.parse(file)
380 print 'Content-type: text/html'
556 cutoff = now - days * 24 * 3600
627 while lines and not lines[-1]:
628 del lines[-1]
630 line = lines[-1]
633 del lines[-1]
637 rev = line[9:].split()
638 mami = revparse(rev)
642 emit(REVISIONLINK, entry, rev=rev, line=line)
644 prev = "%d.%d" % (mami[0], mami[1]-1)
645 emit(DIFFLINK, entry, prev=prev, rev=rev)
647 emit(DIFFLINK, entry, prev=rev, rev=headrev)
649 headrev = rev
654 if line[:1] == '-' and len(line) >= 20 and \
664 rev = self.ui.rev
665 mami = revparse(rev)
667 self.error("Invalid revision number: %r." % (rev,))
669 self.shell(interpolate(SH_REVISION, entry, rev=rev))
674 rev = self.ui.rev
675 mami = revparse(rev)
677 self.error("Invalid revision number: %r." % (rev,))
684 self.shell(interpolate(SH_RDIFF, entry, rev=rev, prev=prev))
715 sec, num = self.dir.parse(self.ui.file)