##// END OF EJS Templates
largefiles: remove no more referred "getoutgoinglfiles()"
FUJIWARA Katsunori -
r21053:d384ce98 default
parent child Browse files
Show More
@@ -12,7 +12,7 b' import os'
12 import copy
12 import copy
13
13
14 from mercurial import hg, commands, util, cmdutil, scmutil, match as match_, \
14 from mercurial import hg, commands, util, cmdutil, scmutil, match as match_, \
15 archival, error, merge, discovery, pathutil, revset
15 archival, merge, pathutil, revset
16 from mercurial.i18n import _
16 from mercurial.i18n import _
17 from mercurial.node import hex
17 from mercurial.node import hex
18 from hgext import rebase
18 from hgext import rebase
@@ -983,28 +983,6 b' def overrideforget(orig, ui, repo, *pats'
983
983
984 return result
984 return result
985
985
986 def getoutgoinglfiles(ui, repo, dest=None, **opts):
987 dest = ui.expandpath(dest or 'default-push', dest or 'default')
988 dest, branches = hg.parseurl(dest, opts.get('branch'))
989 revs, checkout = hg.addbranchrevs(repo, repo, branches, opts.get('rev'))
990 if revs:
991 revs = [repo.lookup(rev) for rev in scmutil.revrange(repo, revs)]
992
993 try:
994 remote = hg.peer(repo, opts, dest)
995 except error.RepoError:
996 return None
997 outgoing = discovery.findcommonoutgoing(repo, remote.peer(), force=False)
998 if not outgoing.missing:
999 return outgoing.missing
1000 o = repo.changelog.nodesbetween(outgoing.missing, revs)[0]
1001 if opts.get('newest_first'):
1002 o.reverse()
1003
1004 toupload = set()
1005 lfutil.getlfilestoupload(repo, o, lambda fn, lfhash: toupload.add(fn))
1006 return sorted(toupload)
1007
1008 def outgoinghook(ui, repo, other, opts, missing):
986 def outgoinghook(ui, repo, other, opts, missing):
1009 if opts.pop('large', None):
987 if opts.pop('large', None):
1010 toupload = set()
988 toupload = set()
General Comments 0
You need to be logged in to leave comments. Login now