Show More
@@ -649,7 +649,7 b' class ui(object):' | |||||
649 | return [] |
|
649 | return [] | |
650 | return v |
|
650 | return v | |
651 |
|
651 | |||
652 |
def configdate(self, section, name, default= |
|
652 | def configdate(self, section, name, default=_unset, untrusted=False): | |
653 | """parse a configuration element as a tuple of ints |
|
653 | """parse a configuration element as a tuple of ints | |
654 |
|
654 | |||
655 | >>> u = ui(); s = 'foo' |
|
655 | >>> u = ui(); s = 'foo' | |
@@ -660,6 +660,8 b' class ui(object):' | |||||
660 | if self.config(section, name, default, untrusted): |
|
660 | if self.config(section, name, default, untrusted): | |
661 | return self.configwith(util.parsedate, section, name, default, |
|
661 | return self.configwith(util.parsedate, section, name, default, | |
662 | 'date', untrusted) |
|
662 | 'date', untrusted) | |
|
663 | if default is _unset: | |||
|
664 | return None | |||
663 | return default |
|
665 | return default | |
664 |
|
666 | |||
665 | def hasconfig(self, section, name, untrusted=False): |
|
667 | def hasconfig(self, section, name, untrusted=False): |
General Comments 0
You need to be logged in to leave comments.
Login now