anchor.diff:          _ ->
               {DbName, undefined}
       end.
  -
  -unsplit_uuid({DbName, undefined}) ->
  -    DbName;
  -unsplit_uuid({DbName, UUID}) ->
  -    DbName ++ ";" ++ UUID.
   
   sanitize_url(Url) when is_binary(Url) ->
       ?l2b(sanitize_url(?b2l(Url)));
  
positive.code: %% locally access it.
  local_couch_uri_for_vbucket(BucketName, VbucketId) ->
      iolist_to_binary([BucketName, $/, integer_to_list(VbucketId)]).
  
  
  %% Given the vbucket map and node list of a remote bucket and a vbucket id, this
  %% function computes the CAPI URI to access it.
  remote_couch_uri_for_vbucket(VbucketMap, NodeList, VbucketId) ->
      [Owner | _ ] = lists:nth(VbucketId+1, VbucketMap),
      {OwnerNodeProps} = lists:nth(Owner+1, NodeList),
      CapiBase = couch_util:get_value(<<"couchApiBase">>, OwnerNodeProps),
      iolist_to_binary([CapiBase, "%2F", integer_to_list(VbucketId)]).
  
  
  %% Given a bucket config, this function computes a list of active vbuckets
  %% currently owned by the executing node.
  
negative.code: -export([parse_rep_doc/2]).
  -export([split_bucket_name_out_of_target_url/1]).
  -export([local_couch_uri_for_vbucket/2]).
  -export([my_active_vbuckets/1]).
  -export([parse_rep_db/3]).
  -export([sanitize_status/3, get_rep_info/1]).
  -export([is_new_xdcr_path/0]).
  
  