发现水银汞柱更改 - 不能汞推出(Mercurial Hg No changes found - c

2019-07-18 02:04发布

可有人请告知为什么我得到在最后发现没有变化。

另外,我得到一个恼人的消息,“ 用户名在.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 #

提前致谢。

Answer 1:

你所要做的hg commit第一。

hg stat显示当前工作库中所做的更改(自上次提交)和hg out显示到你的仓库将被上推出取得了提交hg push

并且消息“在.hg / hgrc不指定用户名”是指您的用户名未在.hg / hgrc文件中指定。 钥匙圈是一个扩展,我不熟悉的; 假定它将把你的用户名和做一些事情的关键。



文章来源: Mercurial Hg No changes found - can't Hg push out