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

Lars's Avatar

Lars

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 1.8.6.0

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:
e4f87dc7226df6eab632a23226188807a1c0b2b3
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

    Lars,

    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

    Hi
    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?
    Regards
    Lars

    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

    Lars,

    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

Generic

? 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

18 Feb, 2019 09:20 AM
26 Nov, 2018 01:47 PM
16 Nov, 2018 07:51 PM
06 Nov, 2018 04:30 PM
24 Oct, 2018 07:57 AM

 

20 Jul, 2018 11:07 PM
05 Jul, 2018 10:53 AM
27 May, 2018 01:33 AM
14 May, 2018 03:38 PM
04 May, 2018 07:45 AM
28 Feb, 2018 07:08 AM