Mercurial > public > mercurial-scm > hg
comparison hgext/graphlog.py @ 8188:f3abe032fc89
add cmdutil.remoteui
remoteui sorts out the issues of getting ssh config options from the
local repo into the remote one while not copying other options like hooks.
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Sun, 26 Apr 2009 16:50:43 -0500 |
parents | bbc24c0753a0 |
children | 344751cd8cb8 |
comparison
equal
deleted
inserted
replaced
8187:d2504744e7a5 | 8188:f3abe032fc89 |
---|---|
319 | 319 |
320 check_unsupported_flags(opts) | 320 check_unsupported_flags(opts) |
321 dest, revs, checkout = hg.parseurl( | 321 dest, revs, checkout = hg.parseurl( |
322 ui.expandpath(dest or 'default-push', dest or 'default'), | 322 ui.expandpath(dest or 'default-push', dest or 'default'), |
323 opts.get('rev')) | 323 opts.get('rev')) |
324 cmdutil.setremoteconfig(ui, opts) | |
325 if revs: | 324 if revs: |
326 revs = [repo.lookup(rev) for rev in revs] | 325 revs = [repo.lookup(rev) for rev in revs] |
327 other = hg.repository(ui, dest) | 326 other = hg.repository(cmdutil.remoteui(ui, opts), dest) |
328 ui.status(_('comparing with %s\n') % url.hidepassword(dest)) | 327 ui.status(_('comparing with %s\n') % url.hidepassword(dest)) |
329 o = repo.findoutgoing(other, force=opts.get('force')) | 328 o = repo.findoutgoing(other, force=opts.get('force')) |
330 if not o: | 329 if not o: |
331 ui.status(_("no changes found\n")) | 330 ui.status(_("no changes found\n")) |
332 return | 331 return |
346 directory. | 345 directory. |
347 """ | 346 """ |
348 | 347 |
349 check_unsupported_flags(opts) | 348 check_unsupported_flags(opts) |
350 source, revs, checkout = hg.parseurl(ui.expandpath(source), opts.get('rev')) | 349 source, revs, checkout = hg.parseurl(ui.expandpath(source), opts.get('rev')) |
351 cmdutil.setremoteconfig(ui, opts) | 350 other = hg.repository(cmdutil.remoteui(repo, opts), source) |
352 | |
353 other = hg.repository(ui, source) | |
354 ui.status(_('comparing with %s\n') % url.hidepassword(source)) | 351 ui.status(_('comparing with %s\n') % url.hidepassword(source)) |
355 if revs: | 352 if revs: |
356 revs = [other.lookup(rev) for rev in revs] | 353 revs = [other.lookup(rev) for rev in revs] |
357 incoming = repo.findincoming(other, heads=revs, force=opts["force"]) | 354 incoming = repo.findincoming(other, heads=revs, force=opts["force"]) |
358 if not incoming: | 355 if not incoming: |