comparison mercurial/subrepo.py @ 13694:4f5ed2bd1724

merge with stable
author Matt Mackall <mpm@selenic.com>
date Thu, 17 Mar 2011 17:08:13 -0500
parents 31eac42d9123 a7c9735307bd
children 78a0a815fd41
comparison
equal deleted inserted replaced
13691:ad02eba55459 13694:4f5ed2bd1724
762 tracking['refs/remotes/%s/%s' % 762 tracking['refs/remotes/%s/%s' %
763 (remote, ref.split('/', 2)[2])] = b 763 (remote, ref.split('/', 2)[2])] = b
764 return tracking 764 return tracking
765 765
766 def _abssource(self, source): 766 def _abssource(self, source):
767 if '://' not in source:
768 # recognize the scp syntax as an absolute source
769 colon = source.find(':')
770 if colon != -1 and '/' not in source[:colon]:
771 return source
767 self._subsource = source 772 self._subsource = source
768 return _abssource(self) 773 return _abssource(self)
769 774
770 def _fetch(self, source, revision): 775 def _fetch(self, source, revision):
771 if self._gitmissing(): 776 if self._gitmissing():