On Mon, 15 Jun 2009 23:08:29 -0400, you wrote:

>Is there a way to see, via web or command line, what URL fossil will  
>use by default for sync, push, or pull?
>
>`fossil info` doesn't work. (it gives "server-code" -- what can be  
>done with this?)
>
>server-code:  9ac298a5d4b8c99cafc7b63c7cbe883f1e770008
>
>$ ./fossil info 9ac298a5d4b8c99cafc7b63c7cbe883f1e770008
>./fossil: no such artifact: 9ac298a5d4b8c99cafc7b63c7cbe883f1e770008
>
>`fossil all list` doesn't work.
>
>Yet pull knows where to go:
>
>$ ./fossil all list
>/.../fossil/myclone.fsl
>$ ./fossil pull
>Server:    http://www.fossil-scm.org/
>
>Can I find the URL without pulling or syncing?

>From fossil help pull:
<quote>
The URL of the remote server is specified on the command
line. If no URL is specified then the URL used by the most
recent "pull", "push", or "sync" command is used. 
</quote>

This means it's not a setting, but the most recent value has
to be stored somewhere, and yes, it is.

Perhaps there is a better way to obtain it, but this is a
good work-around:

# sqlite3 /path/to/repositorydatabase

sqlite> select value from config where name =
'last-sync-url';
http://www.fossil-scm.org/
sqlite> .q

or, as a oneliner (mail wraps it here):

# sqlite3 /path/to/repositorydatabase "SELECT value FROM
config WHERE name = 'last-sync-url'"

HTH
-- 
  (  Kees Nuyt
  )
c[_]
_______________________________________________
fossil-users mailing list
[email protected]
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to