Results 1 to 3 of 3

Thread: Mercurial - Cannot commit,status etc

  1. #1
    Join Date
    Aug 2009
    Posts
    14
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Mercurial - Cannot commit,status etc

    I've just started using Mercurial within QT Creator (QT 4.7.0 & Qt Creator 2.0.0) but it fails to return status or execute comit commands, complaining there is no Mercurial repository.

    It does in fact create a mercurial repository and will add them ready for the next commit, but when commit it selected from Tools->Mercurial->commit it claims there is no .hg file !

    Can anyone help?

    I'm using Ubuntu 10.04

  2. #2
    Join Date
    Jun 2010
    Posts
    4
    Thanks
    5
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Mercurial - Cannot commit,status etc

    Same here, also Ubuntu.
    Qt Creator creates repository (.hg dir) but then complains there's no repository.
    Despite it works fine with git repository:

    I've created git repo by hand:
    Qt Code:
    1. cd <project dir>
    2. git init
    3. git add .
    4. git commit -m "beta 0 start"
    To copy to clipboard, switch view to plain text mode 
    maybe you should initiate hg repo by hand?
    Last edited by melon; 9th August 2010 at 12:49.

  3. #3
    Join Date
    Aug 2010
    Posts
    19
    Thanks
    4
    Qt products
    Qt4
    Platforms
    Windows Symbian S60 Maemo/MeeGo
    Wiki edits
    9

    Default Re: Mercurial - Cannot commit,status etc

    I use windows, it has the same error.
    Reason:
    - The problem QTCreator runs hg.exe from the folder where you launch QTCreator and of course there is no .hg folder in QTCreator program folder.
    Solution:
    - Launch QTCreator from folder where you store the repository (folder which continas .hg folder)
    - For windows, create a shortcut for QTCreator and in property of that shortcut, choose startIn the folder which contain .hg folder

Similar Threads

  1. Replies: 3
    Last Post: 8th July 2010, 07:41
  2. Unable to commit transaction
    By cydside in forum Qt Programming
    Replies: 6
    Last Post: 23rd July 2009, 07:47
  3. svn commit error on XP using Qt creator
    By yycking in forum General Discussion
    Replies: 3
    Last Post: 10th April 2009, 08:47
  4. [delegate] wrong commit for boolean
    By lauranger in forum Qt Programming
    Replies: 3
    Last Post: 26th October 2006, 08:14
  5. Auto commit in QLineEdit in QTableWidget
    By Corran in forum Qt Programming
    Replies: 3
    Last Post: 9th January 2006, 17:50

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.