Hg push tries to push data to repo without any changes

Roman Kamyk jr rkj at go2.pl
Wed Jan 23 03:40:51 UTC 2013


Hi,
I have a 'dotfiles' repo with couple subrepos, and have been using this
fine for long time. Recently I migrated to a new machine, installed new
Ubuntu 12.10, cloned the repo fine, but I am not able to push, because hg
tries to push to one of the subrepos - that I didn't change, and I have no
authorization to push on bitbucket.
The problematic repo is https://bitbucket.org/tksoh/hgshelve, even without
any subrepos there is a problem as ilustrated by new clone & push:

rkj at rkjunior:~/tmp$ hg clone https://bitbucket.org/tksoh/hgshelve
destination directory: hgshelve
requesting all changes
adding changesets
adding manifests
adding file changes
added 46 changesets with 58 changes to 17 files
updating to branch default
11 files updated, 0 files merged, 0 files removed, 0 files unresolved
rkj at rkjunior:~/tmp$ cd hgshelve/
rkj at rkjunior:~/tmp/hgshelve$ hg out
comparing with https://bitbucket.org/tksoh/hgshelve
searching for changes
no changes found
rkj at rkjunior:~/tmp/hgshelve$ hg push --verbose --debug --traceback
pushing to https://bitbucket.org/tksoh/hgshelve
using https://bitbucket.org/tksoh/hgshelve
sending capabilities command
bitbucket.org certificate matched fingerprint
24:9c:45:8b:9c:aa:ba:55:4e:01:6d:58:ff:e4:28:7d:2a:14:ae:3b
query 1; heads
sending batch command
searching for changes
all remote heads known locally
no changes found
preparing listkeys for "phases"
sending listkeys command
preparing pushkey for "phases:c3499427318a18f56b648dd92c253f93e422f42f"
sending pushkey command
sending 0 bytes
http authorization required
realm: Bitbucket.org HTTP
user: rkj
password:
http auth: user rkj, password ******
bitbucket.org certificate matched fingerprint
24:9c:45:8b:9c:aa:ba:55:4e:01:6d:58:ff:e4:28:7d:2a:14:ae:3b
http auth: user rkj, password ******
bitbucket.org certificate matched fingerprint
24:9c:45:8b:9c:aa:ba:55:4e:01:6d:58:ff:e4:28:7d:2a:14:ae:3b
http auth: user rkj, password ******
bitbucket.org certificate matched fingerprint
24:9c:45:8b:9c:aa:ba:55:4e:01:6d:58:ff:e4:28:7d:2a:14:ae:3b
http auth: user rkj, password ******
bitbucket.org certificate matched fingerprint
24:9c:45:8b:9c:aa:ba:55:4e:01:6d:58:ff:e4:28:7d:2a:14:ae:3b
http auth: user rkj, password ******
bitbucket.org certificate matched fingerprint
24:9c:45:8b:9c:aa:ba:55:4e:01:6d:58:ff:e4:28:7d:2a:14:ae:3b
http auth: user rkj, password ******
bitbucket.org certificate matched fingerprint
24:9c:45:8b:9c:aa:ba:55:4e:01:6d:58:ff:e4:28:7d:2a:14:ae:3b
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 88,
in _runcatch
    return _dispatch(req)
  File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 741,
in _dispatch
    cmdpats, cmdoptions)
  File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 514,
in runcommand
    ret = _runcommand(ui, options, cmd, d)
  File "/usr/lib/python2.7/dist-packages/mercurial/extensions.py", line
189, in wrap
    return wrapper(origfn, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/hgext/pager.py", line 130, in
pagecmd
    return orig(ui, options, cmd, cmdfunc)
  File "/usr/lib/python2.7/dist-packages/mercurial/extensions.py", line
189, in wrap
    return wrapper(origfn, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/hgext/color.py", line 371, in
colorcmd
    return orig(ui_, opts, cmd, cmdfunc)
  File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 831,
in _runcommand
    return checkargs()
  File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 802,
in checkargs
    return cmdfunc()
  File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 738,
in <lambda>
    d = lambda: util.checksignature(func)(ui, *args, **cmdoptions)
  File "/usr/lib/python2.7/dist-packages/mercurial/util.py", line 472, in
check
    return func(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/mercurial/extensions.py", line
144, in wrap
    util.checksignature(origfn), *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/mercurial/util.py", line 472, in
check
    return func(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/hgext/mq.py", line 3546, in
mqcommand
    return orig(ui, repo, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/mercurial/util.py", line 472, in
check
    return func(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/mercurial/extensions.py", line
144, in wrap
    util.checksignature(origfn), *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/mercurial/util.py", line 472, in
check
    return func(*args, **kwargs)
  File "/home/rkj/misc/dotfiles/hgext/hg-prompt/prompt.py", line 434, in
_push_with_cache
    res = orig(ui, repo, *args, **opts)
  File "/usr/lib/python2.7/dist-packages/mercurial/util.py", line 472, in
check
    return func(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/mercurial/commands.py", line 4751,
in push
    newbranch=opts.get('new_branch'))
  File "/usr/lib/python2.7/dist-packages/mercurial/localrepo.py", line
1970, in push
    str(phases.public))
  File "/usr/lib/python2.7/dist-packages/mercurial/wireproto.py", line 116,
in plain
    encresref.set(self._submitone(f.func_name, encargsorres))
  File "/usr/lib/python2.7/dist-packages/mercurial/wireproto.py", line 164,
in _submitone
    return self._call(op, **args)
  File "/usr/lib/python2.7/dist-packages/mercurial/httppeer.py", line 170,
in _call
    fp = self._callstream(cmd, **args)
  File "/usr/lib/python2.7/dist-packages/mercurial/httppeer.py", line 121,
in _callstream
    raise util.Abort(_('authorization failed'))
Abort: authorization failed
abort: authorization failed

I have no idea why this could happen or how to debug further. On my other
machines everything is fine. I've upgraded Mercurial from default 2.2.2 to
2.4.2 through PPA, and the results is the same.
Could anyone help me figure this out?
Best,
-- 
Roman Kamyk
email/jabber: roman.kamyk at gmail.com<https://mail.google.com/mail/?view=cm&fs=1&tf=1&to=roman.kamyk@gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20130122/a57caba1/attachment-0002.html>


More information about the Mercurial mailing list