webrev.ksh on Ubuntu 12.04
Dave Pointon
dpointo8 at linux.vnet.ibm.com
Thu Nov 21 04:42:43 PST 2013
Hiya Mike ,
On Wed, 2013-11-20 at 15:39 -0800, Mike Duigou wrote:
> > + hg outgoing -q --template '{rev}\n' default '='
> > ssh://jtc-hg.hursley.ibm.com//home/hg/jtchg-ibm-adm/composite/80/jcl/head
> > + sort -n
> > hg outgoing: invalid arguments
>
> This implies to me that OUTPWS is set to "default = ssh://jtc-hg.hursley.ibm.com//home/hg/jtchg-ibm-adm/composite/80/jcl/head" which is probably happening as a result of an empty $OUTPWS being passed to:
>
> hg path $OUTPWS 2>/dev/null | $FILTER
>
> Can you capture the script output for this portion of the execution?
>
> Mike
>
<snip>
You are dead right, viz ...
.
.
+ CWS=/home/dpointo8/work/repos/Mercurial/composite.OJDK-889
+ [[ -n '' ]]
+ [[ -z '' ]]
+ [[ -n '' ]]
+ [[ -z '' ]]
+ grep
default-push /home/dpointo8/work/repos/Mercurial/composite.OJDK-889/.hg/hgrc
+ /usr/bin/nawk '{print $3}'
+ cat
+ OUTPWS=''
+ [[ -z '' ]]
+ grep 'default
=' /home/dpointo8/work/repos/Mercurial/composite.OJDK-889/.hg/hgrc
+ /usr/bin/nawk '{print $3}'
+ cat
+ OUTPWS=''
+ hg path
+ 2> /dev/null
+ cat
+ tmp='default =
ssh://jtc-hg.hursley.ibm.com//home/hg/jtchg-ibm-adm/composite/80/jcl/head'
+ [[ -n 'default =
ssh://jtc-hg.hursley.ibm.com//home/hg/jtchg-ibm-adm/composite/80/jcl/head' ]]
+ OUTPWS='default =
ssh://jtc-hg.hursley.ibm.com//home/hg/jtchg-ibm-adm/composite/80/jcl/head'
+ OUTPWS2='default =
ssh://jtc-hg.hursley.ibm.com//home/hg/jtchg-ibm-adm/composite/80/jcl/head'
+ [[ -n 'default =
ssh://jtc-hg.hursley.ibm.com//home/hg/jtchg-ibm-adm/composite/80/jcl/head' ]]
+ expr 'default =
ssh://jtc-hg.hursley.ibm.com//home/hg/jtchg-ibm-adm/composite/80/jcl/head' : '.*://[^/]*@.*'
+ [[ 0 -gt 0 ]]
+ [[ -z '' ]]
+ hg branch
+ HG_BRANCH=default
+ [ default '==' default ]
+ HG_BRANCH=''
+ [[ -z '' ]]
+ [[ -z '' ]]
+ hg outgoing -q --template '{rev}\n' default '='
ssh://jtc-hg.hursley.ibm.com//home/hg/jtchg-ibm-adm/composite/80/jcl/head
+ sort -n
hg outgoing: invalid arguments
+ ALL_CREV=$'\n\nhg outgoing [-M] [-p] [-n] [-f] [-r REV]...
[DEST]\nshow changesets not found in the destination\nuse "hg help
outgoing" to show the full help text'
+ [[ -n $'\n\nhg outgoing [-M] [-p] [-n] [-f] [-r REV]... [DEST]\nshow
changesets not found in the destination\nuse "hg help outgoing" to show
the full help text' ]]
+ echo $'\n\nhg outgoing [-M] [-p] [-n] [-f] [-r REV]... [DEST]\nshow
changesets not found in the destination\nuse "hg help outgoing" to show
the full help text'
+ head -1
+ FIRST_CREV=''
+ [[ -z '' ]]
+ find_outrev ''
hg: parse error: can't negate that
expr: syntax error
+ OUTREV=''
.
.
Rgds ,
--
Dave Pointon FIAP MBCS
Now I saw, tho' too late, the folly of beginning a work
before we count the cost and before we we judge rightly
of our strength to go thro' with it - Robinson Crusoe
More information about the jdk8-dev
mailing list