Jun Wu
2017-08-28 17:47:17 UTC
# HG changeset patch
# User Jun Wu <***@fb.com>
# Date 1503940518 25200
# Mon Aug 28 10:15:18 2017 -0700
# Node ID e8ac54ffcb66ab12baf0ebf4f5c6a471987f36db
# Parent 4b4cd517d565437c9dbcd12444e0fc5050922372
revset: accept additional arguments
The upstream is going to add an `order` argument to `revset.methods`
functions. Let's update our code to be compatible with it.
[1]: https://phab.mercurial-scm.org/D451
diff --git a/hgsubversion/util.py b/hgsubversion/util.py
--- a/hgsubversion/util.py
+++ b/hgsubversion/util.py
@@ -388,8 +388,8 @@ revsets = {
}
-def revset_stringset(orig, repo, subset, x):
+def revset_stringset(orig, repo, subset, x, *args, **kwargs):
if x.startswith('r') and x[1:].isdigit():
return revset_svnrev(repo, subset, ('string', x[1:]))
- return orig(repo, subset, x)
+ return orig(repo, subset, x, *args, **kwargs)
def getfilestoresize(ui):
# User Jun Wu <***@fb.com>
# Date 1503940518 25200
# Mon Aug 28 10:15:18 2017 -0700
# Node ID e8ac54ffcb66ab12baf0ebf4f5c6a471987f36db
# Parent 4b4cd517d565437c9dbcd12444e0fc5050922372
revset: accept additional arguments
The upstream is going to add an `order` argument to `revset.methods`
functions. Let's update our code to be compatible with it.
[1]: https://phab.mercurial-scm.org/D451
diff --git a/hgsubversion/util.py b/hgsubversion/util.py
--- a/hgsubversion/util.py
+++ b/hgsubversion/util.py
@@ -388,8 +388,8 @@ revsets = {
}
-def revset_stringset(orig, repo, subset, x):
+def revset_stringset(orig, repo, subset, x, *args, **kwargs):
if x.startswith('r') and x[1:].isdigit():
return revset_svnrev(repo, subset, ('string', x[1:]))
- return orig(repo, subset, x)
+ return orig(repo, subset, x, *args, **kwargs)
def getfilestoresize(ui):
--
You received this message because you are subscribed to the Google Groups "hgsubversion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hgsubversion+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at https://groups.google.com/group/hgsubversion.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "hgsubversion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hgsubversion+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at https://groups.google.com/group/hgsubversion.
For more options, visit https://groups.google.com/d/optout.