Browse Source

findincoming has been refactored from a method to a function

Natenom/support-murmur-13-1446181288462
Michael Ziegler 14 years ago
parent
commit
f45231b8e7
  1. 3
      hg/checkincoming.py

3
hg/checkincoming.py

@ -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) );

Loading…
Cancel
Save