original_string: public function writeRevision()
      {
          if ($this->syncCommit) {
              $localRevision = $this->syncCommit;
          } else {
              $localRevision = $this->git->localRevision()[0];
          }
  
          try {
              $this->bridge->put($localRevision, $this->revisionFile);
          }
          catch (Exception $e) {
              throw new Exception("Could not update the revision file on server: {$e->getMessage()}");
          }
      }
code: public function writeRevision()
      {
          if ($this->syncCommit) {
              $localRevision = $this->syncCommit;
          } else {
              $localRevision = $this->git->localRevision()[0];
          }
  
          try {
              $this->bridge->put($localRevision, $this->revisionFile);
          }
          catch (Exception $e) {
              throw new Exception("Could not update the revision file on server: {$e->getMessage()}");
          }
      }
code_tokens: public function writeRevision ( ) { if ( $ this -> syncCommit ) { $ localRevision = $ this -> syncCommit ; } else { $ localRevision = $ this -> git -> localRevision ( ) [ 0 ] ; } try { $ this -> bridge -> put ( $ localRevision , $ this -> revisionFile ) ; } catch ( Exception $ e ) { throw new Exception ( "Could not update the revision file on server: {$e->getMessage()}" ) ; } }
docstring: Writes latest revision to the remote
  revision file
  
  @throws Exception if can't update revision file
docstring_tokens: Writes latest revision to the remote revision file