diff mercurial/localrepo.py @ 1551:e793cbc8be00

Fixes to "hg heads -r FOO": Make it actually work (undefined variable 'rev'; allow to pass a rev parameter). repo.branchlookup() doesn't need a copy of heads because it doesn't modify it. Use None as default argument to heads() instead of nullid. Doc string PEPification.
author Thomas Arendsen Hein <thomas@intevation.de>
date Wed, 16 Nov 2005 12:56:19 +0100
parents ccb9b62de892
children 59b3639df0a9
line wrap: on
line diff
--- a/mercurial/localrepo.py	Wed Nov 16 12:08:25 2005 +0100
+++ b/mercurial/localrepo.py	Wed Nov 16 12:56:19 2005 +0100
@@ -613,7 +613,7 @@
                 self.dirstate.update([dest], "a")
             self.dirstate.copy(source, dest)
 
-    def heads(self, start=nullid):
+    def heads(self, start=None):
         heads = self.changelog.heads(start)
         # sort the output in rev descending order
         heads = [(-self.changelog.rev(h), h) for h in heads]