Referring to the tip of a remote repository via revset or bookmark
Matt Mackall
mpm at selenic.com
Thu Jan 5 20:08:18 UTC 2012
On Thu, 2012-01-05 at 20:52 +0100, Alexander Krauss wrote:
> Hi all,
>
> I have a repository (call it BIG) that is meant to be always a superset
> of another repository (call it SMALL), which is achieved by regular
> automatic pulls via cron (but no automated merges or such things:
> multiple heads in BIG are just fine)
>
> I am looking for an easy way to refer to the tip of SMALL from within
> BIG, that is, the equivalent of
>
> hg -R SMALL tip --style '{node|short}'
>
> but preferably in a way that interacts better with revset expressions.
> Ideally I would like to be able to write something like
>
> hg log -r remote_tip(SMALL)
You can do remote revision lookups with:
hg id -r <tag, branch, or bookmark> <url>
I've been meaning to add a remote() predicate to revsets for this
purpose, maybe this afternoon...
--
Mathematics is the supreme nostalgia of our time.
More information about the Mercurial
mailing list