LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Mercurial Hg push command not working - Error: No changes found (https://www.linuxquestions.org/questions/linux-software-2/mercurial-hg-push-command-not-working-error-no-changes-found-4175445048/)

sangal_ak04 01-10-2013 03:55 PM

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.

sangal_ak04 01-10-2013 06:04 PM

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

sangal_ak04 01-10-2013 06:40 PM

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

sangal_ak04 01-10-2013 06:51 PM

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 ???

sangal_ak04 01-10-2013 08:30 PM

PS ...these for similar PITA solutions:

http://stackoverflow.com/questions/1...69997#14269997
http://www.linuxquestions.org/questi...12#post4867412
http://stackoverflow.com/questions/1...70602#14270602
http://stackoverflow.com/questions/1...70648#14270648


All times are GMT -5. The time now is 07:03 AM.