mercurial/wireproto.py
changeset 11879 4e804302d30c
parent 11627 04f76a954842
child 12042 210049a8d16e
equal deleted inserted replaced
11878:8bb1481cf08f 11879:4e804302d30c
     3 # Copyright 2005-2010 Matt Mackall <mpm@selenic.com>
     3 # Copyright 2005-2010 Matt Mackall <mpm@selenic.com>
     4 #
     4 #
     5 # This software may be used and distributed according to the terms of the
     5 # This software may be used and distributed according to the terms of the
     6 # GNU General Public License version 2 or any later version.
     6 # GNU General Public License version 2 or any later version.
     7 
     7 
     8 import urllib, tempfile, os
     8 import urllib, tempfile, os, sys
     9 from i18n import _
     9 from i18n import _
    10 from node import bin, hex
    10 from node import bin, hex
    11 import changegroup as changegroupmod
    11 import changegroup as changegroupmod
    12 import repo, error, encoding, util, store
    12 import repo, error, encoding, util, store
    13 import pushkey as pushkey_
    13 import pushkey as pushkey_
    34     def heads(self):
    34     def heads(self):
    35         d = self._call("heads")
    35         d = self._call("heads")
    36         try:
    36         try:
    37             return decodelist(d[:-1])
    37             return decodelist(d[:-1])
    38         except:
    38         except:
    39             self.abort(error.ResponseError(_("unexpected response:"), d))
    39             self._abort(error.ResponseError(_("unexpected response:"), d))
    40 
    40 
    41     def branchmap(self):
    41     def branchmap(self):
    42         d = self._call("branchmap")
    42         d = self._call("branchmap")
    43         try:
    43         try:
    44             branchmap = {}
    44             branchmap = {}