Mercurial options

2020-11-23 Thread Craig Ozancin
Hi,

I have over the last couple years done a bit of bash scripting about
mercurial. So far I have only come across two annoyances. Neither are
show stoppers.

The first is just a minor issue. hg-evolve always reports new obsolete
changesets. This is true even when the -q / --quiet option is given.

The other is regarding how hg is called.

For example, I create a bash script name test that does some stuff including
calling hg one or more times. I then create the following alias:

[alias]
test= ! ~/bin/test

All works as expected.

Mercurial makes the following available to test:

HG  an exported variable with the path to hg
HG_ARGS set to test

I always use $HG in my scripts. HG_ARGS not so much.

The problem is when I call hg with extra options.

hg --hidden test

or

hg --color never test

Test runs without knowing that these options were used. It would be nice
to use these options in the script to give the expected behavior. Is there
alway to identify used hg options?

If not, would it be possible to add an additional exported variable that
lists
the options in a comma separated format:

HG_OPTIONS="--hidden,--color,never"

This could then be parsed by a script to obtain the calling options.
___
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel


Broken local clone

2021-08-28 Thread Craig Ozancin
After upgrading to mercurial 5.9 (via pip3) I have found an issue.

I am encountering errors when I attempt to clone from one local (directory)
repository to another.

As an experiment I created a new login account (run) on my Ubuntu 20.04
system to eliminate any configuration concerns.

>From this login I did the following:

(Clone the mercurial repository)
hg clone https://www.mercurial-scm.org/repo/hg

This completed without issue. I then attempted to create a local clone:
hg clone hg test

I received the following error and mercurial aborted:

abort: No such file or directory:
'/home/run/test/.hg/store/data/contrib/plan9/hgrc.d.hg/9diff.rc.i'

I downgraded mercurial to 5.8 and tried again and everything worked as
expected.

Has anyone else seen this?

Craig
___
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel