Mercurial > hg
comparison hgext/largefiles/overrides.py @ 17271:a09cc6aeed4a stable
largefiles: support revsets for outgoing --large
Previous to this, outgoing with a revset succeeded unless --large was also
specified.
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Fri, 20 Jul 2012 19:08:26 -0400 |
parents | acfab0754584 |
children | eac3f9c2f9c5 |
comparison
equal
deleted
inserted
replaced
17270:32246faba53a | 17271:a09cc6aeed4a |
---|---|
930 def getoutgoinglfiles(ui, repo, dest=None, **opts): | 930 def getoutgoinglfiles(ui, repo, dest=None, **opts): |
931 dest = ui.expandpath(dest or 'default-push', dest or 'default') | 931 dest = ui.expandpath(dest or 'default-push', dest or 'default') |
932 dest, branches = hg.parseurl(dest, opts.get('branch')) | 932 dest, branches = hg.parseurl(dest, opts.get('branch')) |
933 revs, checkout = hg.addbranchrevs(repo, repo, branches, opts.get('rev')) | 933 revs, checkout = hg.addbranchrevs(repo, repo, branches, opts.get('rev')) |
934 if revs: | 934 if revs: |
935 revs = [repo.lookup(rev) for rev in revs] | 935 revs = [repo.lookup(rev) for rev in scmutil.revrange(repo, revs)] |
936 | 936 |
937 remoteui = hg.remoteui | 937 remoteui = hg.remoteui |
938 | 938 |
939 try: | 939 try: |
940 remote = hg.repository(remoteui(repo, opts), dest) | 940 remote = hg.repository(remoteui(repo, opts), dest) |