# HG changeset patch # User John Mulligan # Date 1232909355 18000 # 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 -r b7ac53f7b061 -r dd08e1e0cea1 hgext/mq.py --- a/hgext/mq.py Sun Jan 25 13:20:43 2009 -0500 +++ b/hgext/mq.py Sun Jan 25 13:49:15 2009 -0500 @@ -1737,7 +1737,10 @@ 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: