equal
deleted
inserted
replaced
359 repo.commit(files, text) |
359 repo.commit(files, text) |
360 |
360 |
361 def pull(ui, repo, source): |
361 def pull(ui, repo, source): |
362 """pull changes from the specified source""" |
362 """pull changes from the specified source""" |
363 paths = {} |
363 paths = {} |
364 try: |
364 for name, path in ui.configitems("paths"): |
365 pf = os.path.expanduser("~/.hgpaths") |
|
366 for l in file(pf): |
|
367 name, path = l.split() |
|
368 paths[name] = path |
365 paths[name] = path |
369 except IOError: |
|
370 pass |
|
371 |
366 |
372 if source in paths: source = paths[source] |
367 if source in paths: source = paths[source] |
373 |
368 |
374 other = hg.repository(ui, source) |
369 other = hg.repository(ui, source) |
375 cg = repo.getchangegroup(other) |
370 cg = repo.getchangegroup(other) |