|
From: | Gerhard Schuck |
Subject: | Re: [Monotone-devel] Re: renaming branches |
Date: | Fri, 09 Apr 2004 17:45:16 +0900 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040114 |
Gerhard Schuck wrote:
graydon hoare wrote:Gerhard Schuck wrote:simple question: Is it possible to rename (or delete) branches? The[...]it's possible, yes. you'd need to reissue new branch certs with the
[...]
I tried the above commands in the following way: #!/bin/bash ARCHIVE=/home/gs/monotone/test.db OLD_BRANCH=Test NEW_BRANCH=test FROM=$(echo -n $OLD_BRANCH | mimencode) IDS=$(monotone --db=$ARCHIVE debug "$(printf "select id from manifest_certs where name='branch' and value='%s\n'" $FROM)" | grep -v row) monotone --db=$ARCHIVE debug "$(printf "delete from manifest_certs where name='branch' and value='%s\n'" $FROM)" for i in $IDS do monotone --db=$ARCHIVE cert manifest manifest $i branch $NEW_BRANCH done That script failed with the following error message:
[...]After correcting the double "manifest" and adding "--branch=$NEW_BRANCH" now it works:
monotone --db=$ARCHIVE --branch=$NEW_BRANCH cert manifest $i branch $NEW_BRANCH
If anyone else wants to try: There are some error messages, which can be ignored. Don't forget to adopt the /MT/options files in the respective working directories to the new branch names.
Many thanks to Graydon Gerhard
[Prev in Thread] | Current Thread | [Next in Thread] |