Login | Register
My pages Projects Community openCollabNet

Discussions > dev [DISABLED] > Re: Trouble replacing adm_access in libsvn_client/merge.c (merge_file_changed)

subversion
Discussion topic

Back to topic list

Re: Trouble replacing adm_access in libsvn_client/merge.c (merge_file_changed)

Author julianfoad
Full name Julian Foad
Date 2009-08-25 05:45:30 PDT
Message Daniel Näslund wrote:
> Thanks Julian for your answers.

I'm interested to see how this works out, as I learn about WC-NG. I hope
someone can guide you in the meantime.

- Julian

> As I see it, this is the situation:
>
> It's not an option to close an adm_access baton and reopen it.
> To retrieve an already created adm_access baton I need another
> associated with it or a wc_ctx. Ultimately it's the db I need.
> BUT the db is not allowed to be known outside of libsvn_wc, not even for
> this temporary fix.
>
> Can I create a function svn_wc_adm_retrieve_​with_wc_ctx() or something
> similar? Right now I can only get a new adm_access from a wc_ctx when
> outside of libsvn_wc. I can not retrieve an already created adm_access
> from a wc_ctx.
>
> I've tried the following in libsvn_client/merge.c (merge_file_changed):
>
> SVN_ERR(svn_wc__adm_​open_in_context(​&temp, wc_ctx,
> svn_dirent_dirname(mine, subpool),
> ! merge_b->dry_run, -1, NULL, NULL,
> subpool));
>
>
> err = svn_wc_adm_retrieve(​&adm_access, temp,
> svn_dirent_dirname(mine, subpool),
> subpool);
>
> When doing this I get an error saying that the directory is locked,
> probably because there is already an adm_access with a write_lock
> allocated in the calling function.
>
> Mvh
> Daniel

« Previous message in topic | 5 of 11 | Next message in topic »

Messages

Show all messages in topic

Trouble replacing adm_access in libsvn_client/merge.c (merge_file_changed) dannas Daniel Näslund 2009-08-23 11:45:23 PDT
     Re: Trouble replacing adm_access in libsvn_client/merge.c (merge_file_changed) dannas Daniel Näslund 2009-08-24 00:07:28 PDT
         Re: Trouble replacing adm_access in libsvn_client/merge.c (merge_file_changed) julianfoad Julian Foad 2009-08-24 05:19:22 PDT
             Re: Trouble replacing adm_access in libsvn_client/merge.c (merge_file_changed) dannas Daniel Näslund 2009-08-25 05:16:35 PDT
                 Re: Trouble replacing adm_access in libsvn_client/merge.c (merge_file_changed) julianfoad Julian Foad 2009-08-25 05:45:30 PDT
                 RE: Trouble replacing adm_access in libsvn_client/merge.c (merge_file_changed) rhuijben Bert Huijben 2009-08-25 05:45:47 PDT
                     Re: Trouble replacing adm_access in libsvn_client/merge.c (merge_file_changed) hwright Hyrum K. Wright 2009-08-25 05:52:56 PDT
                         Re: Trouble replacing adm_access in libsvn_client/merge.c (merge_file_changed) dannas Daniel Näslund 2009-08-25 06:13:13 PDT
                             RE: Trouble replacing adm_access in libsvn_client/merge.c (merge_file_changed) rhuijben Bert Huijben 2009-08-25 06:22:29 PDT
                             What's up with SVNTreeUnequal: Expected and actual SVN_ROOT_NODE differs dannas Daniel Näslund 2009-08-25 10:29:44 PDT
                                 Zooming in on the cause of test merge_tests failures dannas Daniel Näslund 2009-08-25 12:53:57 PDT
Messages per page: