comparison mercurial/localrepo.py @ 5235:8ede77c2d008

pull -r: pass the revisions as the heads argument of findincoming This can make a hg pull -r faster if the remote repo has many heads, and fixes an "abort: received changelog group is empty".
author Alexis S. L. Carvalho <alexis@cecm.usp.br>
date Mon, 27 Aug 2007 01:44:35 -0300
parents bddb4ff134c0
children 5517aa5aafb0 466323968b23
comparison
equal deleted inserted replaced
5233:9d7052f17d77 5235:8ede77c2d008
1310 if not lock: 1310 if not lock:
1311 lock = self.lock() 1311 lock = self.lock()
1312 mylock = True 1312 mylock = True
1313 1313
1314 try: 1314 try:
1315 fetch = self.findincoming(remote, force=force) 1315 fetch = self.findincoming(remote, heads=heads, force=force)
1316 if fetch == [nullid]: 1316 if fetch == [nullid]:
1317 self.ui.status(_("requesting all changes\n")) 1317 self.ui.status(_("requesting all changes\n"))
1318 1318
1319 if not fetch: 1319 if not fetch:
1320 self.ui.status(_("no changes found\n")) 1320 self.ui.status(_("no changes found\n"))