Show More
@@ -105,13 +105,14 b' Check that extensions are loaded in phas' | |||
|
105 | 105 | > def reposetup(ui, repo): |
|
106 | 106 | > print("4) %s reposetup" % name) |
|
107 | 107 | > |
|
108 | > bytesname = name.encode('utf-8') | |
|
108 | 109 | > # custom predicate to check registration of functions at loading |
|
109 | 110 | > from mercurial import ( |
|
110 | 111 | > registrar, |
|
111 | 112 | > smartset, |
|
112 | 113 | > ) |
|
113 | 114 | > revsetpredicate = registrar.revsetpredicate() |
|
114 | > @revsetpredicate(name, safe=True) # safe=True for query via hgweb | |
|
115 | > @revsetpredicate(bytesname, safe=True) # safe=True for query via hgweb | |
|
115 | 116 | > def custompredicate(repo, subset, x): |
|
116 | 117 | > return smartset.baseset([r for r in subset if r in {0}]) |
|
117 | 118 | > EOF |
General Comments 0
You need to be logged in to leave comments.
Login now