mercurial/localrepo.py
branchstable
changeset 12067 a4fbbe0fbc38
parent 11640 c3e8ab80ee90
child 12070 fddacca3202e
equal deleted inserted replaced
12056:85439f43749f 12067:a4fbbe0fbc38
  1197 
  1197 
  1198             if heads is None:
  1198             if heads is None:
  1199                 cg = remote.changegroup(fetch, 'pull')
  1199                 cg = remote.changegroup(fetch, 'pull')
  1200             else:
  1200             else:
  1201                 if not remote.capable('changegroupsubset'):
  1201                 if not remote.capable('changegroupsubset'):
  1202                     raise util.Abort(_("Partial pull cannot be done because "
  1202                     raise util.Abort(_("partial pull cannot be done because "
  1203                                        "other repository doesn't support "
  1203                                        "other repository doesn't support "
  1204                                        "changegroupsubset."))
  1204                                        "changegroupsubset."))
  1205                 cg = remote.changegroupsubset(fetch, heads, 'pull')
  1205                 cg = remote.changegroupsubset(fetch, heads, 'pull')
  1206             return self.addchangegroup(cg, 'pull', remote.url(), lock=lock)
  1206             return self.addchangegroup(cg, 'pull', remote.url(), lock=lock)
  1207         finally:
  1207         finally: