LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-10-2013, 03:55 PM   #1
sangal_ak04
LQ Newbie
 
Registered: Sep 2008
Posts: 27

Rep: Reputation: 0
Wink Mercurial Hg push command not working - Error: No changes found


Can someone pls advise why I'm getting NO CHANGES found at the end. Also, I'm getting an annoying message, "**Username not specified in .hg/hgrc. Keyring will not be used.**"

Version tool: Hg latest version
Server: Linux
Workspace: ~/2012WS


Code:
LinuxServer123:~/2012WS # hg clone http://LinuxServer123/hg/GigaTest/
Username not specified in .hg/hgrc. Keyring will not be used.
http authorization required
realm: Mercurial Repositories
user: u123456
password:
destination directory: GigaTest
requesting all changes
adding changesets
adding manifests
adding file changes
added 14 changesets with 585 changes to 575 files (+1 heads)
2 files updated, 0 files merged, 0 files removed, 0 files unresolved
updating to branch default
0 files updated, 0 files merged, 0 files removed, 0 files unresolved
LinuxServer123:~/2012WS #
LinuxServer123:~/2012WS #
LinuxServer123:~/2012WS #
LinuxServer123:~/2012WS # cd GigaTest/
LinuxServer123:~/2012WS/GigaTest # ls -tlr
total 12
-rw-r--r-- 1 root root   25 Jan 10 16:36 hello.py
-rw-r--r-- 1 root root   25 Jan 10 16:36 HELLO-UP.PY
drwxr-xr-x 4 root root 4096 Jan 10 16:36 .hg
LinuxServer123:~/2012WS/GigaTest # vi hello.py
LinuxServer123:~/2012WS/GigaTest # ls -l > new.txt
LinuxServer123:~/2012WS/GigaTest # hg add new.txt
LinuxServer123:~/2012WS/GigaTest #

LinuxServer123:~/2012WS/GigaTest #
LinuxServer123:~/2012WS/GigaTest # hg stat
M hello.py
A new.txt
LinuxServer123:~/2012WS/GigaTest #

LinuxServer123:~/2012WS/GigaTest # hg out
comparing with http://LinuxServer123/hg/GigaTest/
Username not specified in .hg/hgrc. Keyring will not be used.
http authorization required
realm: Mercurial Repositories
user: u123456
password:
searching for changes
no changes foundLinuxServer123:~/2012WS/GigaTest #
Thanks in advance.

Last edited by sangal_ak04; 01-10-2013 at 03:57 PM.
 
Old 01-10-2013, 06:04 PM   #2
sangal_ak04
LQ Newbie
 
Registered: Sep 2008
Posts: 27

Original Poster
Rep: Reputation: 0
after, hg stat.

doing hg commit -m "commit comment here"

solved the "no changes found" issue.

but now im seeing.

password:
searching for changes
remote: adding changesets
remote: adding manifests
remote: adding file changes
remote: added 1 changesets with 1 changes to 1 files
remote: abort: crosses branches (merge branches or use --clean to discard changes)
remote: warning: changegroup hook exited with status 255
 
Old 01-10-2013, 06:40 PM   #3
sangal_ak04
LQ Newbie
 
Registered: Sep 2008
Posts: 27

Original Poster
Rep: Reputation: 0
OK. resolved both.

Now, keyring is working.

followed this doc. http://pypi.python.org/pypi/mercurial_keyring

Key thing is. order of [...] sections is important i think, may be im wrong. but i had to make [extensions] ... mercurial_keyring = or hgext.mercurial.keyring = /path/for/mercurial_keyring.py

line only in user's ~/.hgrc file. Now, this file is totally different that Repository's .hg/hgrc. Note, it's "hgrc" instead of ".hgrc". i.e. if you see/read anywhere online ..a file as: .hrgc, that means it's your homedirectory one i.e ~/.hgrc. and if someone says local repository hgrc file.. then that file is /xx/xx/xxx/hg/repos/Repo1/.hg/hgrc file. where /xx/xx/xxx/hg/repos is the location where all your Mercurial repositories reside and Repo1 is a repository taken as as example by me.


giga
 
Old 01-10-2013, 06:51 PM   #4
sangal_ak04
LQ Newbie
 
Registered: Sep 2008
Posts: 27

Original Poster
Rep: Reputation: 0
One question though.

My repository "TestHgRepo1" for ex. contains the "hgrc" file (repository's .hg/hgrc)... as

[paths]
myremote = http://LinuxServer1/hg/TestHgRepo1/

[web]
contact = Arun Sangal
description = Test Repository 1

[auth]
myremote.schemes = http https
myremote.prefix = LinuxServer1.company.com/hg
myremote.username = c149807


..
I created a test folder, then ran "hg clone http://LinuxServer1/hg/TestHgRepo1/" or "http://LinuxServer1.company.com/hg/TestHgRepo1/" or "http://xx.xx.xx.xx/hg/TestHgRepo1/" command, and each time, after the clone command was done, when I saw the cloned, folder "TestHgRepo1"'s .hg/hgrc file, it just contained only 2 lines

[paths]
default = http://LinuxServer1/hg/TestHgRepo1/


or with the FQDN value in the 2nd line when i used that during clone step, or the IP xx.xx.xx.xx in the 2nd line, when i used xx.xx.xx.xx way during clone step.

Why, the other .hg/hgrc repository content is not coming ???
 
  


Reply

Tags
command, keyring, linux, mercurial, not working



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to fix command not found error and what is too many argument error. deepakunix Linux - Newbie 6 01-13-2012 11:30 PM
Unable to compile C++ programs.make:g++ command not found error.Error 127 PrathuD Programming 3 03-16-2009 12:44 PM
command not found error Deelk Slackware 12 04-23-2006 02:12 PM
sudo command not working startproc cmd not found Imajica21 Linux - General 2 04-14-2005 01:22 PM
c++ command not found error... ? Cheka Linux - Newbie 2 01-29-2005 03:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:02 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration