Skip to content

Instantly share code, notes, and snippets.

@tghw
Created March 14, 2009 18:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tghw/79139 to your computer and use it in GitHub Desktop.
Save tghw/79139 to your computer and use it in GitHub Desktop.
def log(repo, file):
def h(repo, file):
l = [repo['tip'][file]]
ix = 0
while ix < len(l):
   l.append([f for f in l[ix].parents() if not f in l])
   ix = ix + 1
return l
return map(lambda r: r.rev(), h(repo, file))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment