largefiles: remove no more referred "getoutgoinglfiles()"

This commit is contained in:
FUJIWARA Katsunori 2014-04-16 00:37:24 +09:00
parent 0c85153450
commit 039223a68b

View File

@ -12,7 +12,7 @@ import os
import copy
from mercurial import hg, commands, util, cmdutil, scmutil, match as match_, \
archival, error, merge, discovery, pathutil, revset
archival, merge, pathutil, revset
from mercurial.i18n import _
from mercurial.node import hex
from hgext import rebase
@ -983,28 +983,6 @@ def overrideforget(orig, ui, repo, *pats, **opts):
return result
def getoutgoinglfiles(ui, repo, dest=None, **opts):
dest = ui.expandpath(dest or 'default-push', dest or 'default')
dest, branches = hg.parseurl(dest, opts.get('branch'))
revs, checkout = hg.addbranchrevs(repo, repo, branches, opts.get('rev'))
if revs:
revs = [repo.lookup(rev) for rev in scmutil.revrange(repo, revs)]
try:
remote = hg.peer(repo, opts, dest)
except error.RepoError:
return None
outgoing = discovery.findcommonoutgoing(repo, remote.peer(), force=False)
if not outgoing.missing:
return outgoing.missing
o = repo.changelog.nodesbetween(outgoing.missing, revs)[0]
if opts.get('newest_first'):
o.reverse()
toupload = set()
lfutil.getlfilestoupload(repo, o, lambda fn, lfhash: toupload.add(fn))
return sorted(toupload)
def outgoinghook(ui, repo, other, opts, missing):
if opts.pop('large', None):
toupload = set()