Mercurial > hg
comparison mercurial/subrepo.py @ 25848:0ae07173881d
subrepo: mark internal-only option
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Thu, 25 Jun 2015 17:57:26 -0500 |
parents | de654a83fe1c |
children | 38c585c2f8cc |
comparison
equal
deleted
inserted
replaced
25847:56674fd6dabc | 25848:0ae07173881d |
---|---|
605 self.ui = self._repo.ui | 605 self.ui = self._repo.ui |
606 for s, k in [('ui', 'commitsubrepos')]: | 606 for s, k in [('ui', 'commitsubrepos')]: |
607 v = r.ui.config(s, k) | 607 v = r.ui.config(s, k) |
608 if v: | 608 if v: |
609 self.ui.setconfig(s, k, v, 'subrepo') | 609 self.ui.setconfig(s, k, v, 'subrepo') |
610 # internal config: ui._usedassubrepo | |
610 self.ui.setconfig('ui', '_usedassubrepo', 'True', 'subrepo') | 611 self.ui.setconfig('ui', '_usedassubrepo', 'True', 'subrepo') |
611 self._initrepo(r, state[0], create) | 612 self._initrepo(r, state[0], create) |
612 | 613 |
613 def storeclean(self, path): | 614 def storeclean(self, path): |
614 lock = self._repo.lock() | 615 lock = self._repo.lock() |