Re: [fossil-users] submodules

2011-03-16 Thread trash
Ok, I think I found the solution.

The submodule must be integrated by using
fossil open --nested 

That's not documented, but I'm happy there's a solution.


From: tr...@tekwissusa.com 
Sent: Tuesday, March 15, 2011 3:39 PM
To: fossil-users@lists.fossil-scm.org 
Subject: [fossil-users] submodules

I was trying to add to the discussion about submodules in the archives, but not 
being a power mailing list user I don’t know how. So I apologize for starting  
this new thread.

/myprj/src/...
  /ip/...

whereas
ip.fossil
is a wholly independent fossil repository

In “/myprj/ip” I ‘d like to execute something like
fossil extract VERSION|—latest ip.fossil
which would not open the repo, but just extract the files. Doing it that way 
will of course never allow to make changes to /myprj/ip and propagate them back 
into ip.fossil, since all connection to the repo has been lost. Update of the 
ip is only by manually executing again fossil extract ..., which is a critical 
requirement for me.

So the question is, does such an ‘extract’ function exist, I wasn’t able to 
find anything, but maybe I’m just blind.
I guess it would be the same as ‘fossil open’ followed by ‘fossil close’ 
without the complaint that it’s already within an open tree ‘myprj’.

Best Regards,
Daniel



___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


Re: [fossil-users] submodules

2011-03-16 Thread Joshua Paine
Wow, didn't know about that either. For your original question, the command is 
not extract but export. As specified, it just creates the files, which don't 
then contain any marker that they came from fossil.

Joshua Paine
LetterBlock: Web applications built with joy
http://letterblock.com/
301-576-1920

On Mar 16, 2011, at 3:36 PM, trash tr...@tekwissusa.com wrote:

 Ok, I think I found the solution.
  
 The submodule must be integrated by using
 fossil open --nested 
  
 That's not documented, but I'm happy there's a solution.
  
  
 From: tr...@tekwissusa.com
 Sent: Tuesday, March 15, 2011 3:39 PM
 To: fossil-users@lists.fossil-scm.org
 Subject: [fossil-users] submodules
  
 I was trying to add to the discussion about submodules in the archives, but 
 not being a power mailing list user I don’t know how. So I apologize for 
 starting  this new thread.
  
 /myprj/src/...
   /ip/...
  
 whereas
 ip.fossil
 is a wholly independent fossil repository
  
 In “/myprj/ip” I ‘d like to execute something like
 fossil extract VERSION|—latest ip.fossil
 which would not open the repo, but just extract the files. Doing it that way 
 will of course never allow to make changes to /myprj/ip and propagate them 
 back into ip.fossil, since all connection to the repo has been lost. Update 
 of the ip is only by manually executing again fossil extract ..., which is a 
 critical requirement for me.
  
 So the question is, does such an ‘extract’ function exist, I wasn’t able to 
 find anything, but maybe I’m just blind.
 I guess it would be the same as ‘fossil open’ followed by ‘fossil close’ 
 without the complaint that it’s already within an open tree ‘myprj’.
  
 Best Regards,
 Daniel
 ___
 fossil-users mailing list
 fossil-users@lists.fossil-scm.org
 http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
 ___
 fossil-users mailing list
 fossil-users@lists.fossil-scm.org
 http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


Re: [fossil-users] submodules

2011-03-16 Thread Ron Wilson
On Wed, Mar 16, 2011 at 3:41 PM, Joshua Paine jos...@letterblock.com wrote:
 For your original question, the command
 is not extract but export. As specified, it just creates the files, which
 don't then contain any marker that they came from fossil.

Sorry, export dumps the repository in git-fast-export format, for the
purpose of exporting commits from Fossil to git (or other VCS that can
import git-fast-export format).
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


Re: [fossil-users] submodules

2011-03-16 Thread Joshua Paine
On Mar 16, 2011, at 6:11 PM, Ron Wilson ronw.m...@gmail.com wrote:

 Sorry, export dumps the repository in git-fast-export format, for the
 purpose of exporting commits from Fossil to git (or other VCS that can
 import git-fast-export format).

Oops--thanks for the correction. I must have been having flashbacks to my SVN 
days. Surprisingly, fossil won't export a copy of the files without repository 
info. Closest thing is the zip command, which will create a zip of all files at 
a given revision. You could combine it with an unzip command line utility to 
achieve a file export, but it's awkward and a little silly.
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


Re: [fossil-users] submodules

2011-03-16 Thread Ron Wilson
On Wed, Mar 16, 2011 at 6:41 PM, Joshua Paine jos...@letterblock.com wrote:
 Oops--thanks for the correction. I must have been having flashbacks to my SVN 
 days.
 Surprisingly, fossil won't export a copy of the files without repository 
 info. Closest thing
 is the zip command, which will create a zip of all files at a given revision. 
 You could
 combine it with an unzip command line utility to achieve a file export, but 
 it's awkward
 and a little silly.

You could just rm the _FOSSIL_ file in the root of the working copy,
after doing the open.
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


Re: [fossil-users] submodules

2011-03-15 Thread Ron Wilson
On Tue, Mar 15, 2011 at 3:39 PM,  tr...@tekwissusa.com wrote:
 In “/myprj/ip” I ‘d like to execute something like
 fossil extract VERSION|—latest ip.fossil
 which would not open the repo, but just extract the files. Doing it that way
 will of course never allow to make changes to /myprj/ip and propagate them
 back into ip.fossil, since all connection to the repo has been lost. Update
 of the ip is only by manually executing again fossil extract ..., which is a
 critical requirement for me.

Since ip would be a working copy of a seperate repository, you could
just remove check-in permission for all users except for the
designated maintainers.This can be done either from the command line
or the Fossil ui.
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users