hgext/obsolete.py
branchstable
changeset 344 9bbcd2746898
parent 341 7653f80fd7a4
child 348 afbe4fc8de42
child 350 b836862d48b4
equal deleted inserted replaced
341:7653f80fd7a4 344:9bbcd2746898
  1132 
  1132 
  1133         def push(self, remote, *args, **opts):
  1133         def push(self, remote, *args, **opts):
  1134             """wrapper around pull that pull obsolete relation"""
  1134             """wrapper around pull that pull obsolete relation"""
  1135             self._turn_extinct_secret()
  1135             self._turn_extinct_secret()
  1136             result = opush(remote, *args, **opts)
  1136             result = opush(remote, *args, **opts)
  1137             if 'obsolete' in self.listkeys('namespaces') and self.obsstore:
  1137             if 'obsolete' in remote.listkeys('namespaces') and self.obsstore:
  1138                 data = self.obsstore._writemarkers()
  1138                 data = self.obsstore._writemarkers()
  1139                 r = remote.pushkey('obsolete', 'dump', '',
  1139                 r = remote.pushkey('obsolete', 'dump', '',
  1140                                    base85.b85encode(data))
  1140                                    base85.b85encode(data))
  1141                 if not r:
  1141                 if not r:
  1142                     self.ui.warn(_('failed to push obsolete markers!\n'))
  1142                     self.ui.warn(_('failed to push obsolete markers!\n'))