mercurial/commands.py
changeset 5184 92236732d5a1
parent 5170 de7c772751b4
child 5185 18a9fbb5cd78
equal deleted inserted replaced
5183:664a1c312972 5184:92236732d5a1
   334                     if p not in seen:
   334                     if p not in seen:
   335                         seen[p] = 1
   335                         seen[p] = 1
   336                         visit.append(p)
   336                         visit.append(p)
   337     else:
   337     else:
   338         cmdutil.setremoteconfig(ui, opts)
   338         cmdutil.setremoteconfig(ui, opts)
   339         dest, revs = cmdutil.parseurl(
   339         dest, revs = hg.parseurl(
   340             ui.expandpath(dest or 'default-push', dest or 'default'), revs)
   340             ui.expandpath(dest or 'default-push', dest or 'default'), revs)
   341         other = hg.repository(ui, dest)
   341         other = hg.repository(ui, dest)
   342         o = repo.findoutgoing(other, force=opts['force'])
   342         o = repo.findoutgoing(other, force=opts['force'])
   343 
   343 
   344     if revs:
   344     if revs:
  1473     hexfunc = ui.debugflag and hex or short
  1473     hexfunc = ui.debugflag and hex or short
  1474     default = not (num or id or branch or tags)
  1474     default = not (num or id or branch or tags)
  1475     output = []
  1475     output = []
  1476 
  1476 
  1477     if source:
  1477     if source:
  1478         source, revs = cmdutil.parseurl(ui.expandpath(source), [])
  1478         source, revs = hg.parseurl(ui.expandpath(source), [])
  1479         srepo = hg.repository(ui, source)
  1479         srepo = hg.repository(ui, source)
  1480         if not rev and revs:
  1480         if not rev and revs:
  1481             rev = revs[0]
  1481             rev = revs[0]
  1482         if not rev:
  1482         if not rev:
  1483             rev = "tip"
  1483             rev = "tip"
  1636     For remote repository, using --bundle avoids downloading the changesets
  1636     For remote repository, using --bundle avoids downloading the changesets
  1637     twice if the incoming is followed by a pull.
  1637     twice if the incoming is followed by a pull.
  1638 
  1638 
  1639     See pull for valid source format details.
  1639     See pull for valid source format details.
  1640     """
  1640     """
  1641     source, revs = cmdutil.parseurl(ui.expandpath(source), opts['rev'])
  1641     source, revs = hg.parseurl(ui.expandpath(source), opts['rev'])
  1642     cmdutil.setremoteconfig(ui, opts)
  1642     cmdutil.setremoteconfig(ui, opts)
  1643 
  1643 
  1644     other = hg.repository(ui, source)
  1644     other = hg.repository(ui, source)
  1645     ui.status(_('comparing with %s\n') % source)
  1645     ui.status(_('comparing with %s\n') % source)
  1646     if revs:
  1646     if revs:
  1944     the default push location. These are the changesets that would be pushed
  1944     the default push location. These are the changesets that would be pushed
  1945     if a push was requested.
  1945     if a push was requested.
  1946 
  1946 
  1947     See pull for valid destination format details.
  1947     See pull for valid destination format details.
  1948     """
  1948     """
  1949     dest, revs = cmdutil.parseurl(
  1949     dest, revs = hg.parseurl(
  1950         ui.expandpath(dest or 'default-push', dest or 'default'), opts['rev'])
  1950         ui.expandpath(dest or 'default-push', dest or 'default'), opts['rev'])
  1951     cmdutil.setremoteconfig(ui, opts)
  1951     cmdutil.setremoteconfig(ui, opts)
  1952     if revs:
  1952     if revs:
  1953         revs = [repo.lookup(rev) for rev in revs]
  1953         revs = [repo.lookup(rev) for rev in revs]
  1954 
  1954 
  2066         Host *
  2066         Host *
  2067           Compression yes
  2067           Compression yes
  2068       Alternatively specify "ssh -C" as your ssh command in your hgrc or
  2068       Alternatively specify "ssh -C" as your ssh command in your hgrc or
  2069       with the --ssh command line option.
  2069       with the --ssh command line option.
  2070     """
  2070     """
  2071     source, revs = cmdutil.parseurl(ui.expandpath(source), opts['rev'])
  2071     source, revs = hg.parseurl(ui.expandpath(source), opts['rev'])
  2072     cmdutil.setremoteconfig(ui, opts)
  2072     cmdutil.setremoteconfig(ui, opts)
  2073 
  2073 
  2074     other = hg.repository(ui, source)
  2074     other = hg.repository(ui, source)
  2075     ui.status(_('pulling from %s\n') % (source))
  2075     ui.status(_('pulling from %s\n') % (source))
  2076     if revs:
  2076     if revs:
  2111     about ssh:// URLs.
  2111     about ssh:// URLs.
  2112 
  2112 
  2113     Pushing to http:// and https:// URLs is only possible, if this
  2113     Pushing to http:// and https:// URLs is only possible, if this
  2114     feature is explicitly enabled on the remote Mercurial server.
  2114     feature is explicitly enabled on the remote Mercurial server.
  2115     """
  2115     """
  2116     dest, revs = cmdutil.parseurl(
  2116     dest, revs = hg.parseurl(
  2117         ui.expandpath(dest or 'default-push', dest or 'default'), opts['rev'])
  2117         ui.expandpath(dest or 'default-push', dest or 'default'), opts['rev'])
  2118     cmdutil.setremoteconfig(ui, opts)
  2118     cmdutil.setremoteconfig(ui, opts)
  2119 
  2119 
  2120     other = hg.repository(ui, dest)
  2120     other = hg.repository(ui, dest)
  2121     ui.status('pushing to %s\n' % (dest))
  2121     ui.status('pushing to %s\n' % (dest))