Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [CDO] Branches created in an offline clone
[CDO] Branches created in an offline clone [message #720918] Wed, 31 August 2011 13:41 Go to next message
Szabolcs Bardy is currently offline Szabolcs BardyFriend
Messages: 9
Registered: July 2009
Junior Member
Hi,

I'm trying to set up an offline clone to be used with our current CDO repository. In our current scenario we have to use branches in order to realize a workflow, where users can have their separate snapshot of the repository. I have managed to set up an example with an offline clone and a master repository. Everything is synchronized fine except the created branches. When I create a branch in the master, it will be created in the offline clone as well, but when I create a branch in the offline clone, no branch will be created in the master. I do not see it in the code either why it should happen, as I see there is no "write-through" branch creation, or do I miss something? Is branching supported in the offline mode as well?

Another question related to the offline mode:

Is there a way to use "with ranges" mapping strategy when using an offline mode?
The methods 'rawImportReviseOldRevisions' and 'rawImportUnreviseNewRevisions' from AbstractHorizontalMappingStrategy are overridden only in HorizontalBranchingMappingStrategy, but not in HorizontalBranchingMappingStrategyWithRanges, hence I get an UnsupportedOperation exception when synchronizing the repositories.

Thanks,
Szabolcs
Re: [CDO] Branches created in an offline clone [message #720996 is a reply to message #720918] Wed, 31 August 2011 16:13 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
Am 31.08.2011 15:41, schrieb Szabolcs Bardy:
> Hi,
>
> I'm trying to set up an offline clone to be used with our current CDO repository. In our current scenario we have to
> use branches in order to realize a workflow, where users can have their separate snapshot of the repository. I have
> managed to set up an example with an offline clone and a master repository. Everything is synchronized fine except the
> created branches. When I create a branch in the master, it will be created in the offline clone as well, but when I
> create a branch in the offline clone, no branch will be created in the master. I do not see it in the code either why
> it should happen, as I see there is no "write-through" branch creation, or do I miss something? Is branching supported
> in the offline mode as well?
"Branching" as a capability is supported, but not as a verb (as in "creating a branch") in OFFLINE state.

Just the other day we've discussed that in the team but it's not trivial and we have no concrete plans so far.

>
> Another question related to the offline mode:
>
> Is there a way to use "with ranges" mapping strategy when using an offline mode? The methods
> 'rawImportReviseOldRevisions' and 'rawImportUnreviseNewRevisions' from AbstractHorizontalMappingStrategy are
> overridden only in HorizontalBranchingMappingStrategy, but not in HorizontalBranchingMappingStrategyWithRanges, hence
> I get an UnsupportedOperation exception when synchronizing the repositories.
Unfortunately neither Stefan nor myself had the time so far to implement raw replication for the newer ranges-based
mapping strategies ;-(

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper


Re: [CDO] Branches created in an offline clone [message #721679 is a reply to message #720996] Fri, 02 September 2011 14:26 Go to previous messageGo to next message
Cyril Jaquier is currently offline Cyril JaquierFriend
Messages: 80
Registered: July 2009
Member
>> Is there a way to use "with ranges" mapping strategy when using an
>> offline mode? The methods 'rawImportReviseOldRevisions' and
>> 'rawImportUnreviseNewRevisions' from AbstractHorizontalMappingStrategy
>> are overridden only in HorizontalBranchingMappingStrategy, but not in
>> HorizontalBranchingMappingStrategyWithRanges, hence I get an
>> UnsupportedOperation exception when synchronizing the repositories.
> Unfortunately neither Stefan nor myself had the time so far to implement
> raw replication for the newer ranges-based mapping strategies ;-(
>

There is already a Bugzilla for this.

https://bugs.eclipse.org/bugs/show_bug.cgi?id=351078

We backported this mapping strategy to CDO 3.x and but we still need raw
replication. Is there any chance to see this implemented soon? Thank you.

Cheers,
Cyril
Re: [CDO] Branches created in an offline clone [message #721697 is a reply to message #721679] Fri, 02 September 2011 15:40 Go to previous message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
Am 02.09.2011 16:26, schrieb Cyril Jaquier:
>>> Is there a way to use "with ranges" mapping strategy when using an
>>> offline mode? The methods 'rawImportReviseOldRevisions' and
>>> 'rawImportUnreviseNewRevisions' from AbstractHorizontalMappingStrategy
>>> are overridden only in HorizontalBranchingMappingStrategy, but not in
>>> HorizontalBranchingMappingStrategyWithRanges, hence I get an
>>> UnsupportedOperation exception when synchronizing the repositories.
>> Unfortunately neither Stefan nor myself had the time so far to implement
>> raw replication for the newer ranges-based mapping strategies ;-(
>>
> There is already a Bugzilla for this.
>
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=351078
>
> We backported this mapping strategy to CDO 3.x and but we still need raw
> replication. Is there any chance to see this implemented soon?
It seems to me that this is not a one or two hours effort and I'm quite busy with the offline CDOWorkspace and its
integration into the new EMF Client Platform. Maybe we can chat about it on Monday...

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper


Previous Topic:How to add dependencies ot the .JETEmitters project
Next Topic:Convert IFile to URI
Goto Forum:
  


Current Time: Thu Mar 28 11:01:15 GMT 2024

Powered by FUDForum. Page generated in 0.02218 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top