comparison mercurial/cmdutil.py @ 4557:050fa240db9c

dispatch: accept an abbreviation of --repository
author Matt Mackall <mpm@selenic.com>
date Mon, 11 Jun 2007 21:09:24 -0500
parents 30bc57094bfc
children 8044be585b91
comparison
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)