monotone-devel
[Top][All Lists]
Advanced

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

Re: [Monotone-devel] Renaming branches and tags


From: Nathaniel Smith
Subject: Re: [Monotone-devel] Renaming branches and tags
Date: Wed, 10 Aug 2005 21:13:17 -0700
User-agent: Mutt/1.5.9i

On Mon, Aug 08, 2005 at 07:47:14PM -0300, Juan Jose Comellas wrote:
> Is it possible to rename an already created branch? And what about a tag?
> I want to change the naming I've been using for branches and I haven't seen 
> any easy way to do this besides recreating everything from scratch.

There isn't.  It's a frequently requested feature, so there may be
some day, but it's a complex problem when you have a distributed
system...

One option is to just issue new branch certs and ignore the old ones.
Something like
  for REV in `monotone automate select b:OLDBRANCH`; do
    monotone cert $REV branch NEWBRANCH
  done

After you've done this, you can also throw out the old certs, if you
want, with 'db kill_branch_certs_locally'.  As the name suggests,
though, this might not be very effective if you've shared your db with
other people, because the old certs can come back the next time you
sync.  The old certs won't hurt anything, though.

-- Nathaniel

-- 
Damn the Solar System.  Bad light; planets too distant; pestered with
comets; feeble contrivance; could make a better one myself.
  -- Lord Jeffrey

This email may be read aloud.




reply via email to

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