hg-git not pushing changes to py2js on github

1 view
Skip to first unread message

Jonathan Fine

unread,
May 1, 2010, 6:00:54 AM5/1/10
to JavaScript for Python programmers
Hello Ondrej and Peter

I have a problem with hg-git.  I've made some changes and wish to push them to github, but am getting
    abort: revision 32747a439a8d cannot be pushed since it doesn't have a ref

Do you have any idea what might be wrong?  The console log is below.


Jonathan

jfine@apricot:~/2010$ hg clone git://github.com/mattpap/py2js.git py2js-git-push-test
importing Hg objects into Git
Counting objects: 871, done.
Compressing objects: 100% (552/552), done.
Total 871 (delta 446), reused 623 (delta 285)
importing Git objects into Hg
at:   0/164
at: 100/164
updating working directory
182 files updated, 0 files merged, 0 files removed, 0 files unresolved
jfine@apricot:~/2010$ cd py2js-git-push-test/
jfine@apricot:~/2010/py2js-git-push-test$ ls
AUTHORS  doc  examples    LICENSE  math.js  py2js.py  py-builtins.js  README  run_tests.py  tests
jfine@apricot:~/2010/py2js-git-push-test$ hg pull ../py2js-git/
pulling from ../py2js-git/
searching for changes
adding changesets
adding manifests
adding file changes
added 2 changesets with 2 changes to 1 files
(run 'hg update' to get a working copy)
jfine@apricot:~/2010/py2js-git-push-test$ hg update
1 files updated, 0 files merged, 0 files removed, 0 files unresolved
jfine@apricot:~/2010/py2js-git-push-test$ hg push git+ssh://g...@github.com:mattpap/py2js.git
pushing to git+ssh://g...@github.com:mattpap/py2js.git
importing Hg objects into Git
at: 0/2
creating and sending data
abort: revision 32747a439a8d cannot be pushed since it doesn't have a ref
jfine@apricot:~/2010/py2js-git-push-test$

--
You received this message because you are subscribed to the Google Groups "JavaScript for Python programmers" group.
To post to this group, send an email to js...@googlegroups.com.
To unsubscribe from this group, send email to js4py+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/js4py?hl=en-GB.

Ondrej Certik

unread,
May 1, 2010, 1:02:48 PM5/1/10
to js...@googlegroups.com
On Sat, May 1, 2010 at 3:00 AM, Jonathan Fine
<jonatha...@googlemail.com> wrote:
> Hello Ondrej and Peter
>
> I have a problem with hg-git.  I've made some changes and wish to push them
> to github, but am getting
>     abort: revision 32747a439a8d cannot be pushed since it doesn't have a
> ref
>
> Do you have any idea what might be wrong?  The console log is below.

You need to use the url like this:

g...@github.com:mattpap/py2js.git

I saw your patches, so I assume that you have figured it out.

Ondrej

Ondrej Certik

unread,
May 1, 2010, 1:07:45 PM5/1/10
to js...@googlegroups.com
On Sat, May 1, 2010 at 10:02 AM, Ondrej Certik <ond...@certik.cz> wrote:
> On Sat, May 1, 2010 at 3:00 AM, Jonathan Fine
> <jonatha...@googlemail.com> wrote:
>> Hello Ondrej and Peter
>>
>> I have a problem with hg-git.  I've made some changes and wish to push them
>> to github, but am getting
>>     abort: revision 32747a439a8d cannot be pushed since it doesn't have a
>> ref
>>
>> Do you have any idea what might be wrong?  The console log is below.
>
> You need to use the url like this:
>
> g...@github.com:mattpap/py2js.git
>
> I saw your patches, so I assume that you have figured it out.

so in particular, with hg-git, do:

hg push git+ssh://g...@github.com/mattpap/py2js.git

Jonathan Fine

unread,
May 1, 2010, 2:26:58 PM5/1/10
to js...@googlegroups.com
On Sat, May 1, 2010 at 6:07 PM, Ondrej Certik <ond...@certik.cz> wrote:

> I saw your patches, so I assume that you have figured it out.

No.  I created a pure git repository and used that instead.
 
so in particular, with hg-git, do:

hg push git+ssh://g...@github.com/mattpap/py2js.git

What I tried was
    hg push git+ssh://g...@github.com:mattpap/py2js.git
which is identical but for the replacement of a ':' by a '/'.

As I recall, I tried both possibilities and got the same error both times.  Perhaps I'll look at this again later.

--
Jonathan

Ondrej Certik

unread,
May 1, 2010, 2:31:26 PM5/1/10
to js...@googlegroups.com
On Sat, May 1, 2010 at 11:26 AM, Jonathan Fine
<jonatha...@googlemail.com> wrote:
>
>
> On Sat, May 1, 2010 at 6:07 PM, Ondrej Certik <ond...@certik.cz> wrote:
>
>> > I saw your patches, so I assume that you have figured it out.
>
> No.  I created a pure git repository and used that instead.
>
>>
>> so in particular, with hg-git, do:
>>
>> hg push git+ssh://g...@github.com/mattpap/py2js.git
>
> What I tried was
>     hg push git+ssh://g...@github.com:mattpap/py2js.git
> which is identical but for the replacement of a ':' by a '/'.
>
> As I recall, I tried both possibilities and got the same error both times.
> Perhaps I'll look at this again later.

Try it again, as the one with "/" was working for me when I tried it.

Ondrej

Jonathan Fine

unread,
May 2, 2010, 2:13:16 AM5/2/10
to js...@googlegroups.com
On Sat, May 1, 2010 at 7:31 PM, Ondrej Certik <ond...@certik.cz> wrote:

Try it again, as the one with "/" was working for me when I tried it.

Still not working for me:
===
.../py2js-hggit-github$ hg push git+ssh://g...@github.com/mattpap/py2js.git
pushing to git+ssh://g...@github.com/mattpap/py2js.git

importing Hg objects into Git
at: 0/1
creating and sending data
abort: revision b6279fbb8324 cannot be pushed since it doesn't have a ref
.../py2js/py2js-hggit-github$ hg --version
Mercurial Distributed SCM (version 1.1.2)

Copyright (C) 2005-2008 Matt Mackall <m...@selenic.com> and others
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

 --
Jonathan

Ondrej Certik

unread,
May 3, 2010, 1:06:48 AM5/3/10
to js...@googlegroups.com
On Sat, May 1, 2010 at 11:13 PM, Jonathan Fine
<jonatha...@googlemail.com> wrote:
>
>
> On Sat, May 1, 2010 at 7:31 PM, Ondrej Certik <ond...@certik.cz> wrote:
>>
>> Try it again, as the one with "/" was working for me when I tried it.
>
> Still not working for me:
> ===
> .../py2js-hggit-github$ hg push git+ssh://g...@github.com/mattpap/py2js.git
> pushing to git+ssh://g...@github.com/mattpap/py2js.git
> importing Hg objects into Git
> at: 0/1
> creating and sending data
> abort: revision b6279fbb8324 cannot be pushed since it doesn't have a ref
> .../py2js/py2js-hggit-github$ hg --version
> Mercurial Distributed SCM (version 1.1.2)
>
> Copyright (C) 2005-2008 Matt Mackall <m...@selenic.com> and others
> This is free software; see the source for copying conditions. There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

I have posted exact instructions that work for me into another thread.

That can serve as the canonical way to do it. Now we can debug our
exact versions of mercurial and hg-git and other things and see if we
can make it work for you. I am sure we can get it working.

Ondrej
Reply all
Reply to author
Forward
0 new messages