Esempio n. 1
0
 def update(self, host):
     self._ship(host)
     remote_id = host.rpc.hg_update_working_copy(self.branch)
     local_id = hg_cmd("hg id")[0]['id']
     if self.environment.deployment.dirty:
         local_id = local_id.replace("+", "")
     if remote_id != local_id:
         raise RepositoryDifferentError(local_id, remote_id)
Esempio n. 2
0
 def update(self, host):
     self._ship(host)
     remote_id = host.rpc.git_update_working_copy(self.branch)
     # This can theoretically fail if we have a fresh repository, but
     # that doesn't make sense at this point anyway.
     local_id, _ = cmd("git rev-parse HEAD")
     local_id = local_id.strip()
     if remote_id != local_id:
         raise RepositoryDifferentError(local_id, remote_id)
Esempio n. 3
0
 def update(self, host):
     self._ship(host)
     remote_id = host.rpc.hg_update_working_copy(self.branch)
     local_id, _ = cmd('hg id -i')
     if self.environment.deployment.dirty:
         local_id = local_id.replace('+', '')
     local_id = local_id.strip()
     if remote_id != local_id:
         raise RepositoryDifferentError(local_id, remote_id)