mercurial/ui.py
changeset 2498 1e2ec4fd16df
parent 2495 4a2a4d988ead
child 2499 894435215344
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