comparison hg_delta_editor.py @ 227:d79843a3d42c

Fixing syntax highlighting in emacs.
author Augie Fackler <durin42@gmail.com>
date Mon, 30 Mar 2009 10:24:27 -0500
parents bb2b78f9f4ce
children f71af18c4379
comparison
equal deleted inserted replaced
226:bb2b78f9f4ce 227:d79843a3d42c
58 f.flush() 58 f.flush()
59 f.close() 59 f.close()
60 self.revmap[revnum, branch] = node_hash 60 self.revmap[revnum, branch] = node_hash
61 61
62 def last_known_revision(self): 62 def last_known_revision(self):
63 ''' Obtain the highest numbered -- i.e. latest -- revision known. 63 """Obtain the highest numbered -- i.e. latest -- revision known.
64 64
65 Currently, this function just iterates over the entire revision map 65 Currently, this function just iterates over the entire revision map
66 using the max() builtin. This may be slow for extremely large 66 using the max() builtin. This may be slow for extremely large
67 repositories, but for now, it's fast enough. 67 repositories, but for now, it's fast enough.
68 ''' 68 """
69 try: 69 try:
70 return max(k[0] for k in self.revmap.iterkeys()) 70 return max(k[0] for k in self.revmap.iterkeys())
71 except ValueError: 71 except ValueError:
72 return 0 72 return 0
73 73