webrev.ksh on Ubuntu 12.04
Mike Duigou
mike.duigou at oracle.com
Mon Nov 25 12:02:59 PST 2013
This result is strange. I would expect that after a clone that the .hg/hgrc would contain at least a default path. Does the file exist? What does it contain?
I have a defensive patch for calling hg paths with empty OUTPWS but want to figure out if there's another problem to fix here before proceeding with that.
Mike
On Nov 21 2013, at 04:42 , Dave Pointon <dpointo8 at linux.vnet.ibm.com> wrote:
> 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