Mercurial Hg没有发现任何变化 - 不能Hg推出

时间:2013-01-10 21:48:51

标签: linux mercurial push output mercurial-keyring

有人可以建议我为什么在最后找到没有变化。

此外,我收到一条恼人的消息,“未在.hg / hgrc中指定用户名。将不会使用密钥环。

版本工具:Hg最新版本 服务器:Linux 工作区:〜/ 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 #

提前致谢。

1 个答案:

答案 0 :(得分:3)

您必须先hg commit

hg stat显示对当前工作存储库所做的更改(自上次提交以来),hg out显示将在hg push上推送到您的存储库的提交。

并且“.hg / hgrc中未指定用户名”消息表示您的用户名未在.hg / hgrc文件中指定。钥匙圈是我不熟悉的扩展;大概它会占用你的用户名并用钥匙做点什么。