jenkinsci/mercurial-plugin — pull request #33 by sdorra (2013-02-18 19:54:35+00:00)
Title: Ignore auth section in url for push notifications

The auth section of a url should be ignored for push notifications. A url like http://user:pass@somehost/repo should be triggerable by the url without auth section (http://somehost/repo).

The git-plugin uses a similar mechanism with the [looselyMatches](https://github.com/jenkinsci/git-plugin/blob/master/src/main/java/hudson/plugins/git/GitStatus.java#L166) method.