Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
983 views
in Technique[技术] by (71.8m points)

linux - Mercurial Hg No changes found - can't Hg push out

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


    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 # 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 found
    LinuxServer123:~/2012WS/GigaTest #

Thanks in advance.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

You have to do hg commit first.

hg stat shows the changes made to the current working repository (since the last commit) and hg out shows the commits made to your repository that will be pushed out on hg push.

And the message "Username not specified in .hg/hgrc" means that your username is not specified in the .hg/hgrc file. Keyring is an extension I'm not familiar with; presumably it will take your username and do something with a key.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...