comparison mercurial/ui.py @ 2498:1e2ec4fd16df

Fix ui.expandpath problem and broken test introduced by 4a2a4d988ead.
author Thomas Arendsen Hein <thomas@intevation.de>
date Mon, 26 Jun 2006 14:49:18 +0200
parents 4a2a4d988ead
children 894435215344
comparison
equal deleted inserted replaced
2497:976b6b2a1613 2498:1e2ec4fd16df
203 return loc 203 return loc
204 204
205 path = self.config("paths", loc) 205 path = self.config("paths", loc)
206 if not path and default is not None: 206 if not path and default is not None:
207 path = self.config("paths", default) 207 path = self.config("paths", default)
208 return path 208 return path or loc
209 209
210 def write(self, *args): 210 def write(self, *args):
211 if self.header: 211 if self.header:
212 if self.header != self.prev_header: 212 if self.header != self.prev_header:
213 self.prev_header = self.header 213 self.prev_header = self.header