commit to bundles

Tony Mechelynck antoine.mechelynck at gmail.com
Wed Jul 28 07:29:21 UTC 2010


On 28/07/10 08:39, TK Soh wrote:
> On Wed, Jul 28, 2010 at 2:24 PM, Tony Mechelynck
> <antoine.mechelynck at gmail.com>  wrote:
>> On 28/07/10 06:40, TK Soh wrote:
>>>
>>> I am just thinking about submitting feature request to allow users to
>>> do local commit in a shared repo. Right now mercurial is able to
>>> export/import changesets in bundles, so I wonder if it's possible to
>>> get hg to write the commit data directly to a bundle in the local
>>> repo. This will allow users to continue to commit locally and only
>>> push to the 'host' repo when the work are done.
>>>
>>> Any comments?
>>>
>>> TK
>>> _______________________________________________
>>> Mercurial mailing list
>>> Mercurial at selenic.com
>>> http://selenic.com/mailman/listinfo/mercurial
>>>
>>
>> What do you call "a shared repo"? If you mean "shared" in the sense of the
>
> Yes. I do mean the repos created with 'hg share'
>
>> share extension, all shared repos are (or appear to be) on the same machine
>
> Technically, they don't need to be on the same machine.
>
>> (they are all "local") and share their metadata: a commit to any is common
>> to all. Only the "working directory" is different: so you can make local
>
> That's what I _don't want_ to do. I'd like to commit the changes
> within the repo created with 'hg share', and not to the repo their are
> shared with.
>
>> changes as long as you don't commit them.
>
> I am talking about committing the changes.
>
>> If you mean something else, please explain.
>

Then you need something else than shared repository. If you use a clone 
instead (created with hg clone), each repo will have its own metadata as 
well as its own working directory, and you will have to explicitly push 
or pull to reflect in one of the repos what's been changed in the other.

Best regards,
Tony.
-- 
You can be stopped by the police for biking over 65 miles per hour.
You are not allowed to walk across a street on your hands.
		[real standing laws in Connecticut, United States of America]



More information about the Mercurial mailing list