On Fri, Jul 1, 2011 at 11:31 AM, Teggy V <[email protected]> wrote:

>
> As reported last week, I am getting a login failure message everytime I try
> to pull from a http url whereas the same http url works fine when used with
> clone command.
>
> As mentioned above, if someone can pinpoint in the above something which is
> not correct; or if someone will be kind enough to try a similar sequence of
> commands and shares these commands with me, that would be great.
>
>
Every fossil repository has a "project id".  When you clone a repo, the
project id is copied.  But when you create a new repo from scratch, the
project id is different.

Fossil will not pull (or push or sync) two repositories with different
project ids.  That's a feature to prevent you from accidentally pushing or
pulling the entire history of one project into an unrelated project.

If you create two repos separately and need to sync them, you'll have to
manually set the "project id" to be the same on the two repos.  Use "fossil
sql" to do this:

     UPDATE config SET value=? WHERE name='project-code';

Substitute the appropriate project id for the ? above, of course.

Rather than mess with project codes, the best thing to do is simply to clone
or copy the repo rather than trying to recreate it from scratch and then
syncing.

-- 
D. Richard Hipp
[email protected]
_______________________________________________
fossil-users mailing list
[email protected]
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to