Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to see if there are updates available from a central Mercurial repostiory before pulling them?

I am using Fabric to deploy my Python application from my local machine. I would like to hit our central Mercurial repository (hosted on BitBucket.org) to see if my local repository is at the same rev as the tip.

Is there a command I can call to see if there are updates available from the repository without actually pulling them? If there are updates, I would like to halt the process so I can manually review things before I either pull down those changes or continue with the deployment.

like image 365
MattoTodd Avatar asked Dec 17 '22 17:12

MattoTodd


2 Answers

$ hg help incoming
hg incoming [-p] [-n] [-M] [-f] [-r REV]... [--bundle FILENAME] [SOURCE]

aliases: in

show new changesets found in source
like image 143
Benjamin Wohlwend Avatar answered Apr 08 '23 12:04

Benjamin Wohlwend


Also, for completeness, you can use a GUI tool, like TortoiseHg, which has the same functionality, but presents the incoming changesets visually, like this:

TortoiseHg

like image 25
Lasse V. Karlsen Avatar answered Apr 08 '23 10:04

Lasse V. Karlsen