Show More
@@ -338,6 +338,9 b' class localrepository:' | |||||
338 |
|
338 | |||
339 | if not self.remote: |
|
339 | if not self.remote: | |
340 | self.dirstate = dirstate(self.opener, ui, self.root) |
|
340 | self.dirstate = dirstate(self.opener, ui, self.root) | |
|
341 | try: | |||
|
342 | self.ui.readconfig(self.opener("hgrc")) | |||
|
343 | except IOError: pass | |||
341 |
|
344 | |||
342 | def ignore(self, f): |
|
345 | def ignore(self, f): | |
343 | if self.ignorelist is None: |
|
346 | if self.ignorelist is None: |
@@ -23,6 +23,9 b' class ui:' | |||||
23 | self.debugflag = (self.debugflag or debug) |
|
23 | self.debugflag = (self.debugflag or debug) | |
24 | self.interactive = (self.interactive and interactive) |
|
24 | self.interactive = (self.interactive and interactive) | |
25 |
|
25 | |||
|
26 | def readconfig(self, fp): | |||
|
27 | self.cdata.readfp(fp) | |||
|
28 | ||||
26 | def config(self, section, val, default=None): |
|
29 | def config(self, section, val, default=None): | |
27 | if self.cdata.has_option(section, val): |
|
30 | if self.cdata.has_option(section, val): | |
28 | return self.cdata.get(section, val) |
|
31 | return self.cdata.get(section, val) |
General Comments 0
You need to be logged in to leave comments.
Login now