Mercurial Hg push command not working - Error: No changes found
Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
..
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
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 ???
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.