Mercurial > public > mercurial-scm > hg
comparison hgext/fetch.py @ 3877:abaee83ce0a6
Replace demandload with new demandimport
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Wed, 13 Dec 2006 13:27:09 -0600 |
parents | 53e843840349 |
children | 6b4127c7d52a |
comparison
equal
deleted
inserted
replaced
3876:1e0b94cfba0e | 3877:abaee83ce0a6 |
---|---|
3 # Copyright 2006 Vadim Gelfer <vadim.gelfer@gmail.com> | 3 # Copyright 2006 Vadim Gelfer <vadim.gelfer@gmail.com> |
4 # | 4 # |
5 # This software may be used and distributed according to the terms | 5 # This software may be used and distributed according to the terms |
6 # of the GNU General Public License, incorporated herein by reference. | 6 # of the GNU General Public License, incorporated herein by reference. |
7 | 7 |
8 from mercurial.demandload import * | |
9 from mercurial.i18n import gettext as _ | 8 from mercurial.i18n import gettext as _ |
10 from mercurial.node import * | 9 from mercurial.node import * |
11 demandload(globals(), 'mercurial:commands,hg,node,util') | 10 from mercurial import commands, hg, node, util |
12 | 11 |
13 def fetch(ui, repo, source='default', **opts): | 12 def fetch(ui, repo, source='default', **opts): |
14 '''Pull changes from a remote repository, merge new changes if needed. | 13 '''Pull changes from a remote repository, merge new changes if needed. |
15 | 14 |
16 This finds all changes from the repository at the specified path | 15 This finds all changes from the repository at the specified path |