mercurial/cmdutil.py
changeset 4557 050fa240db9c
parent 4556 30bc57094bfc
child 4561 8044be585b91
equal deleted inserted replaced
4556:30bc57094bfc 4557:050fa240db9c
   264     extensions.loadall(ui)
   264     extensions.loadall(ui)
   265     ui.addreadhook(extensions.loadall)
   265     ui.addreadhook(extensions.loadall)
   266 
   266 
   267     # read the local repository .hgrc into a local ui object
   267     # read the local repository .hgrc into a local ui object
   268     # this will trigger its extensions to load
   268     # this will trigger its extensions to load
   269     path = earlygetopt(["-R", "--repository"], args)
   269     path = earlygetopt(["-R", "--repository", "--repo"], args)
   270     if not path:
   270     if not path:
   271         path = findrepo() or ""
   271         path = findrepo() or ""
   272     if path:
   272     if path:
   273         try:
   273         try:
   274             lui = commands.ui.ui(parentui=ui)
   274             lui = commands.ui.ui(parentui=ui)