comparison hgext/hbisect.py @ 3886:abaee83ce0a6

Replace demandload with new demandimport
author Matt Mackall <mpm@selenic.com>
date Wed, 13 Dec 2006 13:27:09 -0600
parents b4ad640a3bcf
children 6b4127c7d52a
comparison
equal deleted inserted replaced
3885:1e0b94cfba0e 3886:abaee83ce0a6
5 # 5 #
6 # This software may be used and distributed according to the terms 6 # This software may be used and distributed according to the terms
7 # of the GNU General Public License, incorporated herein by reference. 7 # of the GNU General Public License, incorporated herein by reference.
8 8
9 from mercurial.i18n import gettext as _ 9 from mercurial.i18n import gettext as _
10 from mercurial.demandload import demandload 10 from mercurial import hg, util, commands, cmdutil
11 demandload(globals(), "os sys sets mercurial:hg,util,commands,cmdutil") 11 import os, sys, sets
12 12
13 versionstr = "0.0.3" 13 versionstr = "0.0.3"
14 14
15 def lookup_rev(ui, repo, rev=None): 15 def lookup_rev(ui, repo, rev=None):
16 """returns rev or the checked-out revision if rev is None""" 16 """returns rev or the checked-out revision if rev is None"""