mercurial/hg.py
branchstable
changeset 26026 d08e7449ff27
parent 25761 0d37b9b21467
child 26030 5243890224ff
equal deleted inserted replaced
26025:ba8089433090 26026:d08e7449ff27
   402             raise util.Abort(_("destination '%s' is not empty") % dest)
   402             raise util.Abort(_("destination '%s' is not empty") % dest)
   403 
   403 
   404     shareopts = shareopts or {}
   404     shareopts = shareopts or {}
   405     sharepool = shareopts.get('pool')
   405     sharepool = shareopts.get('pool')
   406     sharenamemode = shareopts.get('mode')
   406     sharenamemode = shareopts.get('mode')
   407     if sharepool:
   407     if sharepool and islocal(dest):
   408         sharepath = None
   408         sharepath = None
   409         if sharenamemode == 'identity':
   409         if sharenamemode == 'identity':
   410             # Resolve the name from the initial changeset in the remote
   410             # Resolve the name from the initial changeset in the remote
   411             # repository. This returns nullid when the remote is empty. It
   411             # repository. This returns nullid when the remote is empty. It
   412             # raises RepoLookupError if revision 0 is filtered or otherwise
   412             # raises RepoLookupError if revision 0 is filtered or otherwise