comparison mercurial/subrepo.py @ 13137:7397a53219c9

subrepo: re-backout 2245fcd0e160 This bug got introduced into default simultaneously with its backout, so future merges didn't eradicate it.
author Matt Mackall <mpm@selenic.com>
date Tue, 14 Dec 2010 18:10:51 -0600
parents e76701bf4480
children aae2d5cbde64
comparison
equal deleted inserted replaced
13136:6320101a638c 13137:7397a53219c9
331 fp = self._repo.opener("hgrc", "w", text=True) 331 fp = self._repo.opener("hgrc", "w", text=True)
332 fp.write('[paths]\n') 332 fp.write('[paths]\n')
333 333
334 def addpathconfig(key, value): 334 def addpathconfig(key, value):
335 if value: 335 if value:
336 if not os.path.isabs(value):
337 value = os.path.relpath(os.path.abspath(value), root)
338 fp.write('%s = %s\n' % (key, value)) 336 fp.write('%s = %s\n' % (key, value))
339 self._repo.ui.setconfig('paths', key, value) 337 self._repo.ui.setconfig('paths', key, value)
340 338
341 defpath = _abssource(self._repo, abort=False) 339 defpath = _abssource(self._repo, abort=False)
342 defpushpath = _abssource(self._repo, True, abort=False) 340 defpushpath = _abssource(self._repo, True, abort=False)