# HG changeset patch # User John Mulligan # Date 2009-01-25 18:49:15 # Node ID dd08e1e0cea1336b75f9966e63c055f2b5fb80bf # Parent b7ac53f7b061d31658e0632caab94e2d199e9074 mq: allow qclone's -p option to use path alias Add support for running 'hg qclone -p foo bar' where foo is a path alias defined in the [paths] section of an hgrc file. diff --git a/hgext/mq.py b/hgext/mq.py --- a/hgext/mq.py +++ b/hgext/mq.py @@ -1737,7 +1737,10 @@ def clone(ui, source, dest=None, **opts) if dest is None: dest = hg.defaultdest(source) sr = hg.repository(ui, ui.expandpath(source)) - patchespath = opts['patches'] or patchdir(sr) + if opts['patches']: + patchespath = ui.expandpath(opts['patches']) + else: + patchespath = patchdir(sr) try: pr = hg.repository(ui, patchespath) except error.RepoError: