Details
Details
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Lint
Lint Skipped - Unit
Unit Tests Skipped
( )
Lint Skipped |
Unit Tests Skipped |
def branchmap(self): | def branchmap(self): | ||||
return self._repo.branchmap() | return self._repo.branchmap() | ||||
def capabilities(self): | def capabilities(self): | ||||
return self._caps | return self._caps | ||||
def debugwireargs(self, one, two, three=None, four=None, five=None): | def debugwireargs(self, one, two, three=None, four=None, five=None): | ||||
"""Used to test argument passing over the wire""" | """Used to test argument passing over the wire""" | ||||
return "%s %s %s %s %s" % (one, two, three, four, five) | return "%s %s %s %s %s" % (one, two, pycompat.bytestr(three), | ||||
pycompat.bytestr(four), | |||||
pycompat.bytestr(five)) | |||||
def getbundle(self, source, heads=None, common=None, bundlecaps=None, | def getbundle(self, source, heads=None, common=None, bundlecaps=None, | ||||
**kwargs): | **kwargs): | ||||
chunks = exchange.getbundlechunks(self._repo, source, heads=heads, | chunks = exchange.getbundlechunks(self._repo, source, heads=heads, | ||||
common=common, bundlecaps=bundlecaps, | common=common, bundlecaps=bundlecaps, | ||||
**kwargs)[1] | **kwargs)[1] | ||||
cb = util.chunkbuffer(chunks) | cb = util.chunkbuffer(chunks) | ||||
self.hook('prelistkeys', throw=True, namespace=namespace) | self.hook('prelistkeys', throw=True, namespace=namespace) | ||||
self.ui.debug('listing keys for "%s"\n' % namespace) | self.ui.debug('listing keys for "%s"\n' % namespace) | ||||
values = pushkey.list(self, namespace) | values = pushkey.list(self, namespace) | ||||
self.hook('listkeys', namespace=namespace, values=values) | self.hook('listkeys', namespace=namespace, values=values) | ||||
return values | return values | ||||
def debugwireargs(self, one, two, three=None, four=None, five=None): | def debugwireargs(self, one, two, three=None, four=None, five=None): | ||||
'''used to test argument passing over the wire''' | '''used to test argument passing over the wire''' | ||||
return "%s %s %s %s %s" % (one, two, three, four, five) | return "%s %s %s %s %s" % (one, two, pycompat.bytestr(three), | ||||
pycompat.bytestr(four), | |||||
pycompat.bytestr(five)) | |||||
def savecommitmessage(self, text): | def savecommitmessage(self, text): | ||||
fp = self.vfs('last-message.txt', 'wb') | fp = self.vfs('last-message.txt', 'wb') | ||||
try: | try: | ||||
fp.write(text) | fp.write(text) | ||||
finally: | finally: | ||||
fp.close() | fp.close() | ||||
return self.pathto(fp.name[len(self.root) + 1:]) | return self.pathto(fp.name[len(self.root) + 1:]) |