Can't push a repository to a new location on hglab

Lars's Avatar


11 May, 2015 02:15 PM

Code that is already tracked by Mercurial (and hgLab) in one repository can't be pushed to another repository location on HgLab.
The hg push command fails with following error;
abort: HTTP Error 500: Object reference not set to an instance of an object.

Version HgLab

Create two new repositories in hglab
          newproj/repo1 (push a file.txt to this repo)
          newproj/repo2 (empty project)

// get a clone of a master repo1 and store with a new name repo2
C:\test>hg clone http://admin@localhost/hglab/hg/newproj/repo1 repo2
requesting all changes
adding changesets
adding manifests
adding file changes
added 1 changesets with 1 changes to 1 files
updating to branch default
1 files updated, 0 files merged, 0 files removed, 0 files unresolved

C:\test>cd repo2
C:\test\repo2>echo "modify a file" >> file.txt
C:\test\repo2>hg commit -m"modify"
C:\test\repo2>hg outgoing
comparing with http://admin@localhost/hglab/hg/newproj/repo1
searching for changes
changeset: 1:e4f87dc7226d
tag: tip
user: lars
date: Mon May 11 16:01:33 2015 +0200
summary: modify

// Push to the a new location
C:\test\repo2>hg push --debug http://localhost/hglab/hg/newproj/repo2
pushing to http://localhost/hglab/hg/newproj/repo2
using http://localhost/hglab/hg/newproj/repo2
sending capabilities command
[HgKeyring] Keyring URL: http://localhost/hglab
[HgKeyring] Username found in .hg/hgrc: admin
[HgKeyring] Looking for password for user admin and url http://localhost/hglab
[HgKeyring] Keyring password found. Url: http://localhost/hglab/hg/newproj/repo2
, user: admin, passwd: *********
query 1; heads
sending batch command
searching for changes
taking quick initial sample
searching: 2 queries
query 2; still undecided: 1, sample size is: 1
sending known command
2 total queries
1 changesets found
list of changesets:
bundling: 1/1 changesets (100.00%)
bundling: 1/1 manifests (100.00%)
bundling: file.txt 1/1 files (100.00%)
sending unbundle command
sending 472 bytes
sending: 0 kb
sending: 0 kb
abort: HTTP Error 500: Object reference not set to an instance of an object.

  1. Support Staff 1 Posted by Anton Gogolev on 12 May, 2015 10:17 AM

    Anton Gogolev's Avatar


    That was state-of-the-art bug report! Thanks a lot.

    Fixed in HgLab 1.8.7.

  2. 2 Posted by lars.astell on 12 May, 2015 11:34 AM

    lars.astell's Avatar

    Thanks, the fix works and that solves one of our problems.
    The remaining problem is with the adding LDAP Groups to Teams, which shall
    be available in 1.9.
    That problem stops our migration to hglab. Do you have any new time
    estimation when 1.9 will be available?

    From: Anton Gogolev <[email blocked]>
    To: [email blocked]
    Date: 2015-05-12 12:17
    Subject: Re: Can't push a repository to a new location on hglab
    [Problems #840]

  3. Support Staff 3 Posted by Anton Gogolev on 04 Aug, 2015 03:19 PM

    Anton Gogolev's Avatar


    Apologies for the delay. Please, check out HgLab 1.9.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:


Already uploaded files

  • hgsharp.log 5.25 KB

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

03 Aug, 2022 01:49 PM
05 Jul, 2022 07:01 PM
28 Mar, 2022 04:42 PM
21 Jan, 2022 10:43 AM
20 Jan, 2022 10:45 AM


18 Jan, 2022 10:15 AM
19 Mar, 2021 06:13 PM
01 Mar, 2021 02:51 PM
01 Jan, 2021 02:19 AM
28 Aug, 2020 08:34 AM
23 Jun, 2020 08:29 AM