default-push messes with things

Bryan Jacobs BryanRJ at gmail.com
Tue Jul 1 16:13:14 CDT 2008


First of all:

$ cat .hg/hgrc
[defaults]
push=https://foo/hg/repo
pull=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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
Url : http://selenic.com/pipermail/mercurial/attachments/20080701/efd452e5/attachment.pgp 


More information about the Mercurial mailing list