mercurial/subrepo.py
branchstable
changeset 10697 c90d923fff64
parent 10666 4c50a90b90fc
child 10699 7b0a0d498cc0
child 10954 33119d0252c1
equal deleted inserted replaced
10695:b4b16e90712f 10697:c90d923fff64
   191 
   191 
   192             def addpathconfig(key, value):
   192             def addpathconfig(key, value):
   193                 fp.write('%s = %s\n' % (key, value))
   193                 fp.write('%s = %s\n' % (key, value))
   194                 self._repo.ui.setconfig('paths', key, value)
   194                 self._repo.ui.setconfig('paths', key, value)
   195 
   195 
   196             defpath = os.path.join(_abssource(ctx._repo), path)
   196             defpath = _abssource(self._repo)
       
   197             defpushpath = _abssource(self._repo, True)
   197             addpathconfig('default', defpath)
   198             addpathconfig('default', defpath)
       
   199             if defpath != defpushpath:
       
   200                 addpathconfig('default-push', defpushpath)
   198             fp.close()
   201             fp.close()
   199 
   202 
   200     def dirty(self):
   203     def dirty(self):
   201         r = self._state[1]
   204         r = self._state[1]
   202         if r == '':
   205         if r == '':