largefiles: support revsets for outgoing --large
Previous to this, outgoing with a revset succeeded unless --large was also
specified.
--- a/hgext/largefiles/overrides.py Fri Jul 20 23:50:52 2012 -0400
+++ b/hgext/largefiles/overrides.py Fri Jul 20 19:08:26 2012 -0400
@@ -932,7 +932,7 @@
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 revs]
+ revs = [repo.lookup(rev) for rev in scmutil.revrange(repo, revs)]
remoteui = hg.remoteui
--- a/tests/test-largefiles.t Fri Jul 20 23:50:52 2012 -0400
+++ b/tests/test-largefiles.t Fri Jul 20 19:08:26 2012 -0400
@@ -545,8 +545,8 @@
$ hg addremove --config largefiles.patterns=**large --traceback
adding large as a largefile
-Test that outgoing --large works
- $ hg outgoing --rev 12 --large
+Test that outgoing --large works (with revsets too)
+ $ hg outgoing --rev '.^' --large
comparing with $TESTTMP/a (glob)
searching for changes
changeset: 8:c02fd3b77ec4