在 Mercurial 中找不到文件
我是一个善变的菜鸟,正在挠头试图弄清楚这一点。
我过去已将文件添加到存储库中。回购协议知道这一点:
hg日志Purchase.php
changeset: 40:0bb0a5041ae9
parent: 36:b1627cf0f7a3
user: josh
date: Wed Jun 30 21:41:07 2010 +0530
summary: purchase logic
,如果我执行hg pull,则不会包含Purchase.php。 status 对此一无所知。怎么把这个文件取出来呢?
> hg status Purchase.php
Purchase.php: No such file or directory
I am a mercurial noob, and am scratching my head trying to figure this out.
I have added a file to the repository in the past. The repo knows about it:
hg log Purchase.php
changeset: 40:0bb0a5041ae9
parent: 36:b1627cf0f7a3
user: josh
date: Wed Jun 30 21:41:07 2010 +0530
summary: purchase logic
now, if I do a hg pull, Purchase.php is not included. status does not know about it. How do I get this file out?
> hg status Purchase.php
Purchase.php: No such file or directory
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
hg pull
仅将远程变更集拉取到本地存储库,对您的工作目录不执行任何操作。您需要使用hg update
从本地存储库更新工作目录。使用Mercurial 快速入门 用于获取 Mercurial 操作的可视化模型的备忘单。基本概念是“存储库”、“工作目录”、“变更集”以及代表 Mercurial 命令的各种动词。
hg pull
only pulls remote changesets to your local repo doing nothing to your working directory. You need to update your working directory from your local repo usinghg update
.Use the Mercurial Quick Start cheatsheet for getting the visual model of Mercurial operations. The basic concepts are "repository", "working directory", "changeset" and various verbs that stand for Mercurial commands.