繁体   English   中英

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

[英]Mercurial Hg No changes found - can't Hg push out

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

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

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

提前致谢。

你必须先做hg commit

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

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

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM