|
@ -15,12 +15,13 @@ |
|
|
""" |
|
|
""" |
|
|
|
|
|
|
|
|
from mercurial import hg |
|
|
from mercurial import hg |
|
|
|
|
|
from mercurial.discovery import findincoming |
|
|
|
|
|
|
|
|
def checkincoming( ui, repo, **kwargs ): |
|
|
def checkincoming( ui, repo, **kwargs ): |
|
|
url = ui.config( 'paths', 'default' ); |
|
|
url = ui.config( 'paths', 'default' ); |
|
|
remote = hg.repository( ui, url ); |
|
|
remote = hg.repository( ui, url ); |
|
|
|
|
|
|
|
|
inc = repo.findincoming( remote ); |
|
|
|
|
|
|
|
|
inc = findincoming( repo, remote ); |
|
|
|
|
|
|
|
|
if inc: |
|
|
if inc: |
|
|
ui.status( 'Found %d incoming changesets.\n' % len(inc) ); |
|
|
ui.status( 'Found %d incoming changesets.\n' % len(inc) ); |
|
|