comparison mercurial/commands.py @ 21050:025ec0f08cb6

hg: make "_outgoing()" return peer object for remote repository This patch makes "_outgoing()" return peer object for remote repository, to avoid re-execution "expandpath()", "parseurl()", and "peer()" on caller side for specified URL.
author FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
date Wed, 16 Apr 2014 00:37:24 +0900
parents f117a0ba5289
children 1004d3cd65fd
comparison
equal deleted inserted replaced
21049:f117a0ba5289 21050:025ec0f08cb6
4351 4351
4352 Returns 0 if there are outgoing changes, 1 otherwise. 4352 Returns 0 if there are outgoing changes, 1 otherwise.
4353 """ 4353 """
4354 if opts.get('graph'): 4354 if opts.get('graph'):
4355 cmdutil.checkunsupportedgraphflags([], opts) 4355 cmdutil.checkunsupportedgraphflags([], opts)
4356 o = hg._outgoing(ui, repo, dest, opts) 4356 o, other = hg._outgoing(ui, repo, dest, opts)
4357 if not o: 4357 if not o:
4358 return 4358 return
4359 4359
4360 revdag = cmdutil.graphrevs(repo, o, opts) 4360 revdag = cmdutil.graphrevs(repo, o, opts)
4361 displayer = cmdutil.show_changeset(ui, repo, opts, buffered=True) 4361 displayer = cmdutil.show_changeset(ui, repo, opts, buffered=True)