We've got a few applications which is "managed" by a Mercurial repository. We build releases using Jenkins.
Once Jenkins has built a release we release it and go on working with new features. However, we don't have a specific way of keeping track of which revision we release. We can certainly figure it out, but it takes a little work to get it done.
If something goes wrong with any given release and wee need to find the release which fails, and there's a lot of "backtracking" required. We can't simply fix the bug in "head/trunk" of the repository, because we might have introduced new features. What we want is a way to quickly get the release we distributed, fix the bug there, and release it again.
Is there a "best practise" for this? Would a good way be to have Jenkins to tag the revision it is doing its build on?