Match a revset pattern against repo.changegroup?
mpm at selenic.com
Sun Oct 9 15:51:59 CDT 2011
On Sun, 2011-10-09 at 22:13 +0200, Angel Ezquerra wrote:
> is there an easy way to match a revset pattern against the received
> changegroup on the pretxnchangegroup hook?
Check out repo.set(). This is slightly tricky because it doesn't (yet)
have a way to include a sub-expression:
for ctx in repo.set("%%n:: and (%s)" % revsetexpr, firstincomingnode):
print "bad", ctx.rev()
Mathematics is the supreme nostalgia of our time.
More information about the Mercurial-devel