Skip to content

Instantly share code, notes, and snippets.

@ursm
Created July 29, 2008 18:21
Show Gist options
  • Save ursm/3140 to your computer and use it in GitHub Desktop.
Save ursm/3140 to your computer and use it in GitHub Desktop.
class Ditz::HookManager
on :after_add do |project, config, issues|
issues.each do |i|
`hg add #{i.pathname}`
end
end
on :after_delete do |project, config, issues|
issues.each do |i|
`hg remove #{i.pathname}`
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment