/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/remote.py

  • Committer: Andrew Bennetts
  • Date: 2007-04-19 04:29:20 UTC
  • mto: This revision was merged to the branch mainline in revision 2435.
  • Revision ID: andrew.bennetts@canonical.com-20070419042920-fwr334s98mbcxh5e
Use 'null:' instead of '' to mean NULL_REVISION on the wire.

Show diffs side-by-side

added added

removed removed

Lines of Context:
877
877
        assert response[0] == 'ok', 'unexpected response code %s' % (response,)
878
878
        revno = int(response[1])
879
879
        last_revision = response[2]
880
 
        if last_revision == '':
881
 
            last_revision = NULL_REVISION
882
880
        return (revno, last_revision)
883
881
 
884
882
    def _gen_revision_history(self):
900
898
        # branch, NoSuchRevision will be raised.
901
899
        path = self.bzrdir._path_for_remote_call(self._client)
902
900
        if rev_history == []:
903
 
            rev_id = ''
 
901
            rev_id = 'null:'
904
902
        else:
905
903
            rev_id = rev_history[-1]
906
904
        response = self._client.call('Branch.set_last_revision',