how: hg update dry run?

57 views
Skip to first unread message

anton

unread,
Oct 1, 2010, 4:39:30 AM10/1/10
to merc...@selenic.com
Hi,

somebody pushed changes in my repo,
and now I would like to see what will happen
if I run:

bash> hg up

As I can see there is no --dry or -n option.

Is there any way to see what files will be updated if I run the command??

Anton

_______________________________________________
Mercurial mailing list
Merc...@selenic.com
http://selenic.com/mailman/listinfo/mercurial

Martin Geisler

unread,
Oct 1, 2010, 4:49:00 AM10/1/10
to anton, merc...@selenic.com
anton <ant...@gmx.de> writes:

> Hi,
>
> somebody pushed changes in my repo, and now I would like to see what
> will happen if I run:
>
> bash> hg up
>
> As I can see there is no --dry or -n option.
>
> Is there any way to see what files will be updated if I run the
> command??

If you want to get information about which files has changed, then you
should use 'hg status' -- you already use this many times a day to see
which files have changed since the working copy parent revision.

Use

hg status --rev .:tip

to see which files have changed between the working copy parent revision
(that is '.', the last revision you made a 'hg update' to) and the
newest changeset (the 'tip' changeset).

--
Martin Geisler

aragost Trifork
Professional Mercurial support
http://aragost.com/mercurial/

Yawar Amin

unread,
Oct 1, 2010, 8:15:26 AM10/1/10
to anton, merc...@selenic.com
Hi,

On 2010-10-01, at 04:39, anton wrote:

> Hi,
>
> somebody pushed changes in my repo,
> and now I would like to see what will happen
> if I run:
>
> bash> hg up
>
> As I can see there is no --dry or -n option.
>
> Is there any way to see what files will be updated if I run the command??

Try cloning the repo locally and then updating the clone. You can easily throw away the clone if you don’t like it, and your original is unaffected.

HTH,

Yawar

PGP.sig
Reply all
Reply to author
Forward
0 new messages