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:b1627c开发者_StackOverflow中文版f0f7a3
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
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 using hg 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.
精彩评论