Skip to content

Instantly share code, notes, and snippets.

@tobami
Created April 24, 2011 14:47
Show Gist options
  • Save tobami/939593 to your computer and use it in GitHub Desktop.
Save tobami/939593 to your computer and use it in GitHub Desktop.
Migrate PyPy's Codespeed data to branches
pypy = Project.objects.get(name="pypy")
pypy_trunk = Branch.objects.create(name="trunk", project=pypy)
for rev in Revision.objects.filter(project=pypy):
rev.branch = pypy_trunk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment