puppetlabs/puppet — pull request #592 by hunner (2012-03-23 22:07:58+00:00)
Title: Bug/2.7.x/incorrect dynamic scope warnings

Until the scope inheritance is completely fixed for the new non-dynamic scoping model, we should give appropriate dynamic scoping deprecation warnings.

This branch will perform two queries; one with the dynamic scoping and a second one that directly references the local scope or top/node scope. If the answers differ then removing dynamic scoping would affect the puppet run and a warning should be given.