Mercurial > hg > gitserve
changeset 286:bd9d1e93f8d6
hg pull: ditch .hgpaths for new .hgrc
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
hg pull: ditch .hgpaths for new .hgrc
The format is like this:
[paths]
main = http://selenic.com/hg
hgweb = http://edge2.net/hg/hgweb/
hgdoc = http://edge2.net/hg/man/
manifest hash: fc99889443381bdecc223f09ee65a74a8d5952c1
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
iD8DBQFCp3VKywK+sNU5EO8RAsbfAKCrzNh2yKI0KF9qCzHPz7eXjx688wCeKmIL
RXfAOuycKOTVJU6oFnBbBBo=
=OjMb
-----END PGP SIGNATURE-----
author | mpm@selenic.com |
---|---|
date | Wed, 08 Jun 2005 14:46:34 -0800 |
parents | 5a1e6d27f399 |
children | cd6a462ed1e1 |
files | mercurial/commands.py |
diffstat | 1 files changed, 1 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/commands.py Wed Jun 08 14:45:06 2005 -0800 +++ b/mercurial/commands.py Wed Jun 08 14:46:34 2005 -0800 @@ -361,13 +361,8 @@ def pull(ui, repo, source): """pull changes from the specified source""" paths = {} - try: - pf = os.path.expanduser("~/.hgpaths") - for l in file(pf): - name, path = l.split() + for name, path in ui.configitems("paths"): paths[name] = path - except IOError: - pass if source in paths: source = paths[source]