mercurial/subrepo.py
changeset 13694 4f5ed2bd1724
parent 13646 31eac42d9123
parent 13692 a7c9735307bd
child 13753 78a0a815fd41
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():