obsolete.py
changeset 50 19b22ad56b32
parent 47 b73b3e3c9560
equal deleted inserted replaced
49:4e804af47e57 50:19b22ad56b32
   176                         f.write('%s %s\n' % (hex(sub), hex(obj)))
   176                         f.write('%s %s\n' % (hex(sub), hex(obj)))
   177                 f.rename()
   177                 f.rename()
   178             finally:
   178             finally:
   179                 f.close()
   179                 f.close()
   180 
   180 
       
   181         ### local clone support
       
   182 
       
   183         def cancopy(self):
       
   184             return not bool(self._obsobjrels) # you can't copy if there is obsolete
       
   185 
   181         ### pull // push support
   186         ### pull // push support
   182 
   187 
   183         def pull(self, remote, *args, **kwargs):
   188         def pull(self, remote, *args, **kwargs):
   184             obskey = remote.listkeys('obsolete')
   189             obskey = remote.listkeys('obsolete')
   185             obsrels = obskey.get('relations', {})
   190             obsrels = obskey.get('relations', {})