default-push messes with things

Peter Weseloh peter.weseloh at googlemail.com
Wed Jul 2 04:43:30 CDT 2008


2008/7/1 Bryan Jacobs <BryanRJ at gmail.com>:

> First of all:
>
> $ cat .hg/hgrc
> [defaults]
> push=https://foo/hg/repo
> pull=https://foo/hg/repo <https://foo/hg/repopull=https://foo/hg/repo>
>
> $ hg push
> pushing to https://foo/hg/repo
> searching for changes
> no changes found
>
> $ hg push -f
> hg push: invalid arguments
> ...
>
> use "hg -v help push" to show global options
>
> $ hg version
> Mercurial Distributed SCM (version 1.0.1)
>
> So, "push -f" is broken when a default-push repo is specified.  If I
> comment out the default-push and manually include it on the command
> line, everything works.
>
> Second:
>
> $ hg out
> abort: repository default-push not found!
>
> Why not?  It's in the repository .hg/hgrc file and I'm sitting my
> working copy.  Apparently, "hg out" only works without specifying a
> repo if there's a default-push in ~/.hgrc.  This should not be the case.
>
> Bryan Jacobs
>

Hi Bryan,

you could (should?) add the default push/pull path in the [paths] section of
the repository .hg/hgrc file. So something like
[paths]
default=https://foo/hg/repo <https://foo/hg/repopull=https://foo/hg/repo>

You can also specify a 'default-push' but that's only needed if it differs
from 'default'.

The [defaults] section is for adding default options to specific commands.

Kind regards,
Peter



>
> _______________________________________________
> Mercurial mailing list
> Mercurial at selenic.com
> http://selenic.com/mailman/listinfo/mercurial
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://selenic.com/pipermail/mercurial/attachments/20080702/2a958975/attachment.htm 


More information about the Mercurial mailing list