~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/smart/repository.py

  • Committer: Andrew Bennetts
  • Date: 2007-02-28 07:08:25 UTC
  • mfrom: (2018.13.1 hpss)
  • mto: (2018.5.80 hpss)
  • mto: This revision was merged to the branch mainline in revision 2435.
  • Revision ID: andrew.bennetts@canonical.com-20070228070825-q2dvkjb0a11ouhtx
Update to current hpss branch?  Fix lots of test failures.

Show diffs side-by-side

added added

removed removed

Lines of Context:
59
59
        try:
60
60
            revision_graph = repository.get_revision_graph(decoded_revision_id)
61
61
        except errors.NoSuchRevision:
62
 
            return SmartServerResponse(('nosuchrevision', revision_id))
 
62
            # Note that we return an empty body, rather than omitting the body.
 
63
            # This way the client knows that it can always expect to find a body
 
64
            # in the response for this method, even in the error case.
 
65
            return SmartServerResponse(('nosuchrevision', revision_id), '')
63
66
 
64
67
        for revision, parents in revision_graph.items():
65
68
            lines.append(' '.join([revision,] + parents))