簡體   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