check the current working directory

Martin Geisler mg at lazybytes.net
Sat Apr 3 09:31:57 CDT 2010


maven apache <apachemaven0 at gmail.com> writes:

> Hi:
> I am new in mercurial, I want to know if there is a command can show me the
> version of the current working .
>
> For example, I use the command:
>
>  $RepoB>hg push RepoA
>
> And now how can I know the current version of working copy of RepoA
> though I know I can use the "hg update" to make it synchronized with
> RepoB.

Inside RepoA, you can use 'hg summary' to quickly see if you need to
update.

> Also,is the pull opposite to push?

Yes, pull and push are completely symmetric -- they both transfer
changesets between repositories.

> Does these command override the repository?

I'm not entirely sure what you mean here. Push and pull will only move
changesets and they wont touch your working copy. You need to use 'hg
update' to change the working copy to reflect new changesets (or use 'hg
pull --update' which is a short-hand for 'hg pull; hg update').

-- 
Martin Geisler

Fast and powerful revision control: http://mercurial.selenic.com/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://selenic.com/pipermail/mercurial/attachments/20100403/c718286b/attachment.pgp>


More information about the Mercurial mailing list