##// END OF EJS Templates
add remotecmd/ssh option support to incoming/outgoing
Benoit Boissinot -
r1965:62aa1b90 default
parent child Browse files
Show More
@@ -1765,6 +1765,11 b' def incoming(ui, repo, source="default",'
1765 twice if the incoming is followed by a pull.
1765 twice if the incoming is followed by a pull.
1766 """
1766 """
1767 source = ui.expandpath(source)
1767 source = ui.expandpath(source)
1768 if opts['ssh']:
1769 ui.setconfig("ui", "ssh", opts['ssh'])
1770 if opts['remotecmd']:
1771 ui.setconfig("ui", "remotecmd", opts['remotecmd'])
1772
1768 other = hg.repository(ui, source)
1773 other = hg.repository(ui, source)
1769 incoming = repo.findincoming(other, force=opts["force"])
1774 incoming = repo.findincoming(other, force=opts["force"])
1770 if not incoming:
1775 if not incoming:
@@ -1977,6 +1982,11 b' def outgoing(ui, repo, dest="default-pus'
1977 See pull for valid source format details.
1982 See pull for valid source format details.
1978 """
1983 """
1979 dest = ui.expandpath(dest)
1984 dest = ui.expandpath(dest)
1985 if opts['ssh']:
1986 ui.setconfig("ui", "ssh", opts['ssh'])
1987 if opts['remotecmd']:
1988 ui.setconfig("ui", "remotecmd", opts['remotecmd'])
1989
1980 other = hg.repository(ui, dest)
1990 other = hg.repository(ui, dest)
1981 o = repo.findoutgoing(other, force=opts['force'])
1991 o = repo.findoutgoing(other, force=opts['force'])
1982 o = repo.changelog.nodesbetween(o)[0]
1992 o = repo.changelog.nodesbetween(o)[0]
@@ -2764,7 +2774,10 b' table = {'
2764 ('n', 'newest-first', None, _('show newest record first')),
2774 ('n', 'newest-first', None, _('show newest record first')),
2765 ('', 'bundle', '', _('file to store the bundles into')),
2775 ('', 'bundle', '', _('file to store the bundles into')),
2766 ('p', 'patch', None, _('show patch')),
2776 ('p', 'patch', None, _('show patch')),
2767 ('', 'template', '', _('display with template'))],
2777 ('', 'template', '', _('display with template')),
2778 ('e', 'ssh', '', _('specify ssh command to use')),
2779 ('', 'remotecmd', '',
2780 _('specify hg command to run on the remote side'))],
2768 _('hg incoming [-p] [-n] [-M] [--bundle FILENAME] [SOURCE]')),
2781 _('hg incoming [-p] [-n] [-M] [--bundle FILENAME] [SOURCE]')),
2769 "^init": (init, [], _('hg init [DEST]')),
2782 "^init": (init, [], _('hg init [DEST]')),
2770 "locate":
2783 "locate":
@@ -2799,7 +2812,10 b' table = {'
2799 ('p', 'patch', None, _('show patch')),
2812 ('p', 'patch', None, _('show patch')),
2800 ('', 'style', '', _('display using template map file')),
2813 ('', 'style', '', _('display using template map file')),
2801 ('n', 'newest-first', None, _('show newest record first')),
2814 ('n', 'newest-first', None, _('show newest record first')),
2802 ('', 'template', '', _('display with template'))],
2815 ('', 'template', '', _('display with template')),
2816 ('e', 'ssh', '', _('specify ssh command to use')),
2817 ('', 'remotecmd', '',
2818 _('specify hg command to run on the remote side'))],
2803 _('hg outgoing [-M] [-p] [-n] [DEST]')),
2819 _('hg outgoing [-M] [-p] [-n] [DEST]')),
2804 "^parents":
2820 "^parents":
2805 (parents,
2821 (parents,
General Comments 0
You need to be logged in to leave comments. Login now