[Bug 3468] New: shell alias: not possible to honor -R
bugzilla-daemon at bz.selenic.com
bugzilla-daemon at bz.selenic.com
Wed May 23 02:38:27 CDT 2012
http://bz.selenic.com/show_bug.cgi?id=3468
Priority: normal
Bug ID: 3468
CC: mercurial-devel at selenic.com
Assignee: bugzilla at selenic.com
Summary: shell alias: not possible to honor -R
Severity: bug
Classification: Unclassified
OS: Linux
Reporter: patrickdepinguin+mercurial at gmail.com
Hardware: PC
Status: UNCONFIRMED
Version: earlier
Component: Mercurial
Product: Mercurial
In shell aliases you can use $HG to refer to the hg binary, and $HG_ARGS to
refer to the options given to the alias command.
However, when you run an alias with -R, as in:
hg myalias -R somerepo
there is no way for the alias to know about 'somerepo', because it is neither
in $HG nor in $HG_ARGS.
This is troublesome for aliases that wrap around existing Mercurial commands,
like:
deliverylog = !args=`echo $HG_ARGS | cut -s -d' ' -f2-`;
cmd="$HG log --rev 'sort( user(\"Official delivery\") and branch(.)
, -date)' --limit 1 $args";
echo "$cmd";
eval $cmd
If you run this alias with '-R somerepo', the hg log will not be executed in
somerepo (although this is what I'd expect).
This is not exactly the same problem as in related bugs:
1599 hgext/alias: -R and --cwd options dont work with alias extension RESOLVED
WONTFIX
2306 -R/-cwd support in aliases CONF
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Mercurial-devel
mailing list