--- a/mercurial/localrepo.py Fri Oct 07 19:49:25 2005 -0700
+++ b/mercurial/localrepo.py Fri Oct 07 19:51:09 2005 -0700
@@ -850,7 +850,7 @@
# this is the set of all roots we have to push
return subset
- def pull(self, remote):
+ def pull(self, remote, heads = None):
lock = self.lock()
# if we have an empty repo, fetch everything
@@ -864,7 +864,10 @@
self.ui.status("no changes found\n")
return 1
- cg = remote.changegroup(fetch)
+ if heads is None:
+ cg = remote.changegroup(fetch)
+ else:
+ cg = remote.changegroupsubset(fetch, heads)
return self.addchangegroup(cg)
def push(self, remote, force=False):