monotone-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Monotone-devel] [PATCH] head selector


From: Brian Downing
Subject: [Monotone-devel] [PATCH] head selector
Date: Sun, 26 Jun 2005 03:57:55 -0500
User-agent: Mutt/1.2.5i

Here is a patch to implement an 'h:' head selector.

'h:branch' expands to all the heads on 'branch'.  'h:' expands to all
the heads on the current branch.  The branch name must be exactly
specified.

Some uses for this:

:; monotone -d ~/venge.db checkout -b net.venge.monotone monotone
:; cd monotone
:; monotone diff -r h:net.venge.monotone.cvssync
monotone: expanding selection 'h:net.venge.monotone.cvssync'
monotone: expanded to '7b88f7c9b843cae0b068b5232edf812c9b2b367d'
...
:; monotone update -b net.venge.monotone.cvssync -r h:
monotone: expanding selection 'h:'
monotone: expanded to '7b88f7c9b843cae0b068b5232edf812c9b2b367d'
monotone: selected update target 7b88f7c9b843cae0b068b5232edf812c9b2b367d
...

I don't really like how I implemented it, but I couldn't think of a
better way given my limited knowledge of the Monotone codebase.

-bcd
-- 
*** Brian Downing <bdowning at lavos dot net> 

Attachment: h-selector.diff
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]