[Bug 646925] New: Make repo parameter in locks more flexible