You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by holibert <dr...@gmx.net> on 2005/09/13 10:00:54 UTC
Perl bindings: "Source url %s is from different repository"
Hi there!
I'm trying to implement the functionality from mucc in Perl using the Perl
bindings 1.2.3 for Windows.
Creating of new directory entries and deleting of entries works already,
but if I try to copy an entry with
$rev = $Repo->get_latest_revnum();
$Root = $CommitEditor->open_root($rev);
$CommitEditor->add_directory("rel1", $Root, "tags/rel1", $rev);
$CommitEditor->close_edit();
where "rel1" dosn't exist, I get the following
General filesystem error: Source url 'tags/rel1' is from different
repository at mucc.pl line 36
What am I doing wrong?
Greetings,
Holger
--
5 GB Mailbox, 50 FreeSMS http://www.gmx.net/de/go/promail
+++ GMX - die erste Adresse f�r Mail, Message, More +++
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: Perl bindings: "Source url %s is from different repository"
Posted by holibert <dr...@gmx.net>.
> --- Ursprüngliche Nachricht ---
> Von: Malcolm Rowe <ma...@farside.org.uk>
> An: holibert <dr...@gmx.net>
> Kopie: dev@subversion.tigris.org
> Betreff: Re: Perl bindings: "Source url %s is from different repository"
> Datum: Tue, 13 Sep 2005 12:03:33 +0100
>
> On Tue, Sep 13, 2005 at 12:00:54PM +0200, holibert wrote:
> > Creating of new directory entries and deleting of entries works already,
> > but if I try to copy an entry with
> >
> > $CommitEditor->add_directory("rel1", $Root, "tags/rel1", $rev);
> >
> > where "rel1" dosn't exist, I get the following
> >
> > General filesystem error: Source url 'tags/rel1' is from different
> > repository at mucc.pl line 36
> >
> > What am I doing wrong?
>
> I don't know anything about the bindings, but it looks to me [from looking
> at libsvn_repos/commit.c:add_directory()] as though copy_path needs to be
> an
> absolute URI, not a relative path.
>
> That function URI-decodes the copy_path and generates the error message
> you're seeing if the copy_path doesn't start with the repository URL.
>
> Regards,
> Malcolm
>
Works like charm now.
Thank you very much!
Holger
--
Lust, ein paar Euro nebenbei zu verdienen? Ohne Kosten, ohne Risiko!
Satte Provisionen für GMX Partner: http://www.gmx.net/de/go/partner
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: Perl bindings: "Source url %s is from different repository"
Posted by Malcolm Rowe <ma...@farside.org.uk>.
On Tue, Sep 13, 2005 at 12:00:54PM +0200, holibert wrote:
> Creating of new directory entries and deleting of entries works already,
> but if I try to copy an entry with
>
> $CommitEditor->add_directory("rel1", $Root, "tags/rel1", $rev);
>
> where "rel1" dosn't exist, I get the following
>
> General filesystem error: Source url 'tags/rel1' is from different
> repository at mucc.pl line 36
>
> What am I doing wrong?
I don't know anything about the bindings, but it looks to me [from looking
at libsvn_repos/commit.c:add_directory()] as though copy_path needs to be an
absolute URI, not a relative path.
That function URI-decodes the copy_path and generates the error message
you're seeing if the copy_path doesn't start with the repository URL.
Regards,
Malcolm
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org