hgext/hbisect.py
changeset 4029 9210fba03d16
parent 3893 6b4127c7d52a
child 4390 052062b98f26
equal deleted inserted replaced
4028:540d1059c802 4029:9210fba03d16
     4 # Inspired by git bisect, extension skeleton taken from mq.py.
     4 # Inspired by git bisect, extension skeleton taken from mq.py.
     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 _
    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"""