comparison svnexternals.py @ 286:552deb1351ce

Replace mercurial.util.sort with sorted buildin (after mercurial a1a5a57efe90)
author Martijn Pieters <mj@zopatista.com>
date Mon, 27 Apr 2009 09:39:39 -0500
parents 79349fd04836
children ba8e91a7c077
comparison
equal deleted inserted replaced
285:913fd8aa221c 286:552deb1351ce
22 else: 22 else:
23 super(externalsfile, self).__setitem__(key, value) 23 super(externalsfile, self).__setitem__(key, value)
24 24
25 def write(self): 25 def write(self):
26 fp = cStringIO.StringIO() 26 fp = cStringIO.StringIO()
27 for target in hgutil.sort(self): 27 for target in sorted(self):
28 lines = self[target] 28 lines = self[target]
29 if not lines: 29 if not lines:
30 continue 30 continue
31 if not target: 31 if not target:
32 target = '.' 32 target = '.'