linux – Mercurial Hg没有发现任何变化 – 不能Hg推出
作者:互联网
有人可以建议我为什么在最后找到没有变化.
此外,我收到一条恼人的消息,“用户名未在.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 #
提前致谢.
解决方法:
你必须先做hg提交.
hg stat显示对当前工作存储库所做的更改(自上次提交以来),hg out显示对存储库的提交,这些提交将在hg push上推送出去.
并且“.hg / hgrc中未指定用户名”消息表示您的用户名未在.hg / hgrc文件中指定.钥匙圈是我不熟悉的扩展;大概它会占用你的用户名并用密钥做一些事情.
标签:linux,push,output,mercurial,mercurial-keyring 来源: https://codeday.me/bug/20191003/1847681.html