monotone-devel
[Top][All Lists]
Advanced

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

Re: [Monotone-devel] default branch for "monotone sync"


From: Nathaniel Smith
Subject: Re: [Monotone-devel] default branch for "monotone sync"
Date: Sat, 24 Feb 2007 16:41:16 -0800
User-agent: Mutt/1.5.13 (2006-08-11)

On Sat, Feb 24, 2007 at 11:04:48AM -0800, Evan Martin wrote:
> I have two separate projects that I manage with monotone.
> 
> When I run "mtn sync" from a checkout, what I expect is for the
> current branch to be synced.  What actually happens is it syncs some
> (set default?) branch so I have to pass the host name explicitly.  If
> I switch with --set-default, then when I switch projects the default
> is wrong.

Best practice is probably to split your two projects out into two
databases.  (You can do this by creating two new, empty databases, and
then use a file:// URL with mtn sync to push some subset of branches
into each of the new databases; then just modify _MTN/options in your
checkouts to point to the new databases.) Then you can use
--set-default separately on the two databases.  That way each of your
projects will have the right branch pattern by default -- and if you
create any new branches in either project, you won't have to worry
about sync'ing them one by one, the way you would if we defaulted to
sync'ing only the current branch in the workspace.

-- Nathaniel

-- 
Details are all that matters; God dwells there, and you never get to
see Him if you don't struggle to get them right. -- Stephen Jay Gould




reply via email to

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