comparison mercurial/localrepo.py @ 26448:e05fd574c922

exchange: teach pull about requested stream clones An upcoming patch will move the invocation of stream cloning logic to the normal pull code path (from localrepository.clone). In preparation for this, we teach pull() and pulloperation about whether a streaming clone is requested. The return logic in localrepository.clone() has been reformatted slightly because of line length issues.
author Gregory Szorc <gregory.szorc@gmail.com>
date Fri, 02 Oct 2015 22:16:34 -0700
parents f134fb33c906
children 89b7a7883aee
comparison
equal deleted inserted replaced
26447:591088f7028a 26448:e05fd574c922
1798 1798
1799 # internal config: ui.quietbookmarkmove 1799 # internal config: ui.quietbookmarkmove
1800 quiet = self.ui.backupconfig('ui', 'quietbookmarkmove') 1800 quiet = self.ui.backupconfig('ui', 'quietbookmarkmove')
1801 try: 1801 try:
1802 self.ui.setconfig('ui', 'quietbookmarkmove', True, 'clone') 1802 self.ui.setconfig('ui', 'quietbookmarkmove', True, 'clone')
1803 ret = exchange.pull(self, remote, heads).cgresult 1803 pullop = exchange.pull(self, remote, heads,
1804 streamclonerequested=stream)
1805 return pullop.cgresult
1804 finally: 1806 finally:
1805 self.ui.restoreconfig(quiet) 1807 self.ui.restoreconfig(quiet)
1806 return ret
1807 1808
1808 def pushkey(self, namespace, key, old, new): 1809 def pushkey(self, namespace, key, old, new):
1809 try: 1810 try:
1810 tr = self.currenttransaction() 1811 tr = self.currenttransaction()
1811 hookargs = {} 1812 hookargs = {}