Mercurial > hg
comparison mercurial/subrepo.py @ 13126:e76701bf4480
merge default heads in crew and main
author | Martin Geisler <mg@lazybytes.net> |
---|---|
date | Mon, 13 Dec 2010 11:52:52 +0100 |
parents | 8568bbdfbafe 4a13ca2c21ce |
children | 7397a53219c9 |
comparison
equal
deleted
inserted
replaced
13121:bf763946f8b0 | 13126:e76701bf4480 |
---|---|
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) | |
336 fp.write('%s = %s\n' % (key, value)) | 338 fp.write('%s = %s\n' % (key, value)) |
337 self._repo.ui.setconfig('paths', key, value) | 339 self._repo.ui.setconfig('paths', key, value) |
338 | 340 |
339 defpath = _abssource(self._repo, abort=False) | 341 defpath = _abssource(self._repo, abort=False) |
340 defpushpath = _abssource(self._repo, True, abort=False) | 342 defpushpath = _abssource(self._repo, True, abort=False) |