[fossil-users] [newbie] Can't get started

2011-05-25 Thread Gilles
Hello

This is the first time I'm trying Fossil and I'm using the Windows
version (d8221b9863 2011-05-12).

I will be the only user, and the repository will be located on the
same Windows host where the repository is saved.

There are a few of questions to which I found no answer in the wiki:

1. Should the repository be located at the very top of the directory
tree where files will be added and commited?

For instance, if the files I'll be adding/committing live below C:\,
should the repository be C:\myrepo, or is it OK to locate it anywhere
on the hard drive, eg. D:\whatever\lmyrepo?

2. Is it OK to have spaces in the path leading to the repo and the
files, eg. C:\This is a directory\myrepo, and D:\This is where my
files are\some file.txt?

3. Is it possible _not_ to be prompted for a comment when committing a
file? I'd just like to type fossil commit, and be done with it.

4. Is it possible to open the repository in a DOS box (C:\fossil.exe
open c:\myrepo), and add/commit from a Windows application such as a
text editor?
When I tried this, I got this error: C:\fossil.exe: not within an
open checkout

I guess all the commands should be issued within the DOS box.

Thank you.

___
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] [newbie] Can't get started

2011-05-25 Thread Remigiusz Modrzejewski

On May 25, 2011, at 13:29 , Gilles wrote:

 1. Should the repository be located at the very top of the directory
 tree where files will be added and commited?

No. I'd keep it somewhere else.

 2. Is it OK to have spaces in the path leading to the repo and the
 files, eg. C:\This is a directory\myrepo, and D:\This is where my
 files are\some file.txt?

Yes, but it's mighty inconvenient. But Fossil does not create any problems with 
that.

 3. Is it possible _not_ to be prompted for a comment when committing a
 file? I'd just like to type fossil commit, and be done with it.

It's a bad idea. But I guess that adding something like -m ' ' to the commit 
command should do the trick.

 4. Is it possible to open the repository in a DOS box (C:\fossil.exe
 open c:\myrepo), and add/commit from a Windows application such as a
 text editor?
 When I tried this, I got this error: C:\fossil.exe: not within an
 open checkout

Because you first need to open a repo, look into fossil help open.

 I guess all the commands should be issued within the DOS box.

Well, anyways you need something that's able to issue the commands. You can 
always try one of the GUI programs.



Kind regards,
Remigiusz Modrzejewski



___
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] [newbie] Can't get started

2011-05-25 Thread Joshua Paine
On 5/25/2011 7:29 AM, Gilles wrote:
 1. Should the repository be located at the very top of the directory
 tree where files will be added and commited?

 For instance, if the files I'll be adding/committing live below C:\,
 should the repository be C:\myrepo, or is it OK to locate it anywhere
 on the hard drive, eg. D:\whatever\lmyrepo?

It doesn't matter what drive or folder you put the repo database in, 
except that you don't want to put it inside your working copy. E.g., if 
your project is in c:\myproj, the only place your repo shouldn't be is 
in c:\myproj. Also, you want to avoid storing the repo on a network 
drive most of the time.

 2. Is it OK to have spaces in the path leading to the repo and the
 files, eg. C:\This is a directory\myrepo, and D:\This is where my
 files are\some file.txt?

Yeah, it's cool.

 3. Is it possible _not_ to be prompted for a comment when committing a
 file? I'd just like to type fossil commit, and be done with it.

Every commit has to have a comment, but you can specify it on the 
command line like this:

   fossil commit -m my comment

 4. Is it possible to open the repository in a DOS box (C:\fossil.exe
 open c:\myrepo), and add/commit from a Windows application such as a
 text editor?
 When I tried this, I got this error: C:\fossil.exe: not within an
 open checkout

I don't really understand what you're trying to do there.

At the very beginning of a project, do something like this:

   fossil new c:\fossil-repos\myproj.fossil
   cd c:\myproj
   fossil open c:\fossil-repos\myproj.fossil

There is now a _FOSSIL_ file in c:\myproj and nothing else unless you 
had some files there already. (And it's ok if you did!) You won't need 
to do the above steps again until you start a new project (or a few 
other things, but relax for now). 'fossil open' is not a daily activity.

Now, say you have some work you want to commit. Assuming you're still in 
c:\myproj...

   fossil add .

to add all the not-yet-checked-in files here to your commit or...

   fossil add some-file some-other-file

Then...

   fossil status

Make sure that the output matches the branch you thought you were on and 
shows the files you thought you changed. (Not that fossil will ever be 
wrong about this, but that you might be.)

   fossil commit -m Lovely work.

Wahoo!

So I have no idea what you mean about adding or committing from a test 
editor. If you have a text editor that will give you a command prompt 
inside it, then I would expect fossil to work fine so long as you first 
cd to the project directory.

-- 
Joshua Paine
LetterBlock: Web Applications Built With Joy
http://letterblock.com/
301-576-1920
___
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] [newbie] Can't get started

2011-05-25 Thread Rene
On Wed, 25 May 2011 13:29:58 +0200, Gilles wrote:
 Hello

 This is the first time I'm trying Fossil and I'm using the Windows
 version (d8221b9863 2011-05-12).

 I will be the only user, and the repository will be located on the
 same Windows host where the repository is saved.

 There are a few of questions to which I found no answer in the wiki:

 1. Should the repository be located at the very top of the directory
 tree where files will be added and commited?

 For instance, if the files I'll be adding/committing live below C:\,
 should the repository be C:\myrepo, or is it OK to locate it anywhere
 on the hard drive, eg. D:\whatever\lmyrepo?
The repository should not be in the  directory were you work!
e.g
mkdir c:\src\myproject
fossil new c:\src\gilles.fossil
cd c:\src\myproject
fossil open ../gilles.fossil


 2. Is it OK to have spaces in the path leading to the repo and the
 files, eg. C:\This is a directory\myrepo, and D:\This is where my
 files are\some file.txt?
The directories leading up to your repository or your check-out it 
doesn't matter much
But the file names and directories in you repo/checkout it is not 
recommended but possible.
You need to add  around the name.
You might get into trouble when issuing
fossil add *


 3. Is it possible _not_ to be prompted for a comment when committing 
 a
 file? I'd just like to type fossil commit, and be done with it.
fossil commit -m nocomment
not recommend though


 4. Is it possible to open the repository in a DOS box (C:\fossil.exe
 open c:\myrepo), and add/commit from a Windows application such as a
 text editor?
 When I tried this, I got this error: C:\fossil.exe: not within an
 open checkout
The editor  you used wasn't started in that directory.
open a dos box and cd into c:\src\myproject
start your editor


 I guess all the commands should be issued within the DOS box.
Depends if I would be using the editor vim I could issue
   :cd c:\myproject (make sure I'm in the checkout directory)
   :!c:\fossil.exe commit -m Nocomment


 Thank you.

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

-- 
Rene
___
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] [newbie] Can't get started

2011-05-25 Thread Richard Hipp
On Wed, May 25, 2011 at 7:29 AM, Gilles gilles.gana...@free.fr wrote:

 Hello

 This is the first time I'm trying Fossil and I'm using the Windows
 version (d8221b9863 2011-05-12).

 I will be the only user, and the repository will be located on the
 same Windows host where the repository is saved.

 There are a few of questions to which I found no answer in the wiki:

 1. Should the repository be located at the very top of the directory
 tree where files will be added and commited?

 For instance, if the files I'll be adding/committing live below C:\,
 should the repository be C:\myrepo, or is it OK to locate it anywhere
 on the hard drive, eg. D:\whatever\lmyrepo?


The repo can be anywhere on your hard-drive.  I tend to create a single
folder some place and put all of my repos there.  (I typically have dozens
on any one machine.) That helps to keep things organized, but is certainly
not required.



 2. Is it OK to have spaces in the path leading to the repo and the
 files, eg. C:\This is a directory\myrepo, and D:\This is where my
 files are\some file.txt?


Yes.


 3. Is it possible _not_ to be prompted for a comment when committing a
 file? I'd just like to type fossil commit, and be done with it.


Use the -m command-line option to commit to enter your comment on the
command-line.  Fossil requires a comment of some kind.  You *should* enter a
reasonable comment on every commit.  You'll thank yourself years later when
you are going back trying to figure out what you did.

When I first started writing SQLite back in 2000, I was in the habit of
making every check-in comment a smiley.  See
http://localhost:591/sqlite/timeline?c=2000-01-01 for example.  That was a
bad idea.  Do not repeat my mistake.



 4. Is it possible to open the repository in a DOS box (C:\fossil.exe
 open c:\myrepo), and add/commit from a Windows application such as a
 text editor?
 When I tried this, I got this error: C:\fossil.exe: not within an
 open checkout


The working directory of the process must be in the checkout.  A unix
program will normally preserve your working directory.  But windows is
different.  If you want the command to work, you'll have to find a way to
make your working directory fall somewhere within your checkout.


 I guess all the commands should be issued within the DOS box.

 Thank you.

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




-- 
D. Richard Hipp
d...@sqlite.org
___
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] [newbie] Can't get started

2011-05-25 Thread Stephan Beal
On Wed, May 25, 2011 at 2:28 PM, Gilles gilles.gana...@free.fr wrote:

 file to a repository after opening it in a DOS box, but I get the
 following error when I try to commit:
 =
 C:/SOMEDIR/myfile.txt contains CR/NL line endings; commit anyhow
 (yes/no/all)?
 C:\fossil.exe: Abandoning commit due to CR+NL line endings in
 C:/SOMEDIR/myfile.txt
 =


That's not an error, but a warning. Simply tap aENTER and ignore it.
You're on Windows, so files will tend to use CRNL endings. On Unix systems
CRNL combinations are normally undesireable, and can in fact break certain
file types (e.g. shell scripts, especially if the shebang line ends with a
\r).


Google didn't return any document about that error: Is there a way to
 provide Fossil with an answer to that question, so as not to be
 prompted?


Google knows everything except perhaps what i have in my fridge (and he can
guess that, given my personality profile). It's mostly a matter for
formulating the question (which of course isn't always obvious when one
isn't familiar with the topic):

http://en.wikipedia.org/wiki/Newline

-- 
- stephan beal
http://wanderinghorse.net/home/stephan/
___
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] [newbie] Can't get started

2011-05-25 Thread Gilles
On Wed, 25 May 2011 09:26:25 -0400, Tomek Kott
tkott.s...@gmail.com wrote:
You can specify whether to ignore the line endings (they're different for
win vs. linux vs. osx, and windows does things oddly...I guess). Open up the
ui (fossil ui in an open repository) and then go to the admin, then
settings. Find the crnl-glob setting, and set it to *. This will ignore
all windows CR/NL bad line endings. I don't know how horribly horrible this
is for others, but I have that as a default setting on my computer (win7).

Thanks, that did it.

___
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] [newbie] Can't get started

2011-05-25 Thread Gilles
On Wed, 25 May 2011 13:29:58 +0200, Gilles
gilles.gana...@free.fr wrote:
This is the first time I'm trying Fossil and I'm using the Windows
version (d8221b9863 2011-05-12).

I noticed something else: If my work directory, ie. where files from
the repository are checked out, is on the C partition, Fossil won't
let me add a file that is located on another partition.

For instance, with the repository file at the root of C:\ (so I can
add any file below that, even in sub-directories), trying to add
D:\test.txt triggers the error message: C:\fossil.exe: not within an
open checkout.

Is there a work-around, or does a repository only accept files located
on the drive of work directory, and anywhere below it in the tree?

Thank you.

___
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] [newbie] Can't get started

2011-05-25 Thread Stephan Beal
On Wed, May 25, 2011 at 4:06 PM, Stephan Beal sgb...@googlemail.com wrote:

 On Wed, May 25, 2011 at 3:59 PM, Gilles gilles.gana...@free.fr wrote:

 I noticed something else: If my work directory, ie. where files from
 the repository are checked out, is on the C partition, Fossil won't
 let me add a file that is located on another partition.


 Fossil requires all files in a given repo to share a common parent
 directory.


BTW: that's not just fossil. i don't know of any SCM which allows one to add
arbitrary paths to an arbitrary repository.

-- 
- stephan beal
http://wanderinghorse.net/home/stephan/
___
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] [newbie] Can't get started

2011-05-25 Thread Gilles
On Wed, 25 May 2011 16:06:42 +0200, Stephan Beal
sgb...@googlemail.com wrote:
 Fossil requires all files in a given repo to share a common parent
 directory.


BTW: that's not just fossil. i don't know of any SCM which allows one to add
arbitrary paths to an arbitrary repository.

Thanks for the confirmation.

___
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] [newbie] Can't get started

2011-05-25 Thread Joshua Paine
On 5/25/2011 9:59 AM, Gilles wrote:
 For instance, with the repository file at the root of C:\ (so I can
 add any file below that, even in sub-directories), trying to add
 D:\test.txt triggers the error message: C:\fossil.exe: not within an
 open checkout.

This is correct behavior. If you took your repo and opened it on another 
computer, either in the c:\ root or in a folder, fossil could restore 
all the files in exactly the same relation to each other as you had 
them. They might have a different root or be on a completely different 
drive, but if you had a file in \foo that referred to ..\bar\otherfile, 
the reference would still work.

But what if you were allowed to add d:\test.txt? What's fossil supposed 
to do when you open that repo again somewhere else? I don't have a D: 
drive. Lots of computers have a DVD drive under D:. And even if I have a 
D: drive, what if I open your repo twice in two different folders on my 
system? (E.g., assuming it's software, to keep one behaving normally and 
make my weird changes in the other copy to compare.)

So, yeah, all your repo files have to have a common root. It's by design 
and can't be worked around except by moving files into a common root. 
(And check out http://en.wikipedia.org/wiki/NTFS_junction_point)

And you should really think about your entire-c-drive-is-my-working-copy 
thing. Maybe it makes sense for your use case, but it's at least a very 
unusual use of fossil.

-- 
Joshua Paine
LetterBlock: Web Applications Built With Joy
http://letterblock.com/
301-576-1920
___
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] [newbie] Can't get started

2011-05-25 Thread Gilles
On Wed, 25 May 2011 10:30:37 -0400, Joshua Paine
jos...@letterblock.com wrote:
This is correct behavior.

Yes, makes perfect sense.

And you should really think about your entire-c-drive-is-my-working-copy 
thing. Maybe it makes sense for your use case, but it's at least a very 
unusual use of fossil.

I know it's unusual, but I only wanted a tiny SCM because the Windows
editor doesn't support versioning internally. It's just so I can try
things on small scripts and be able to cancel if they didn't work.

___
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] [newbie] Can't get started

2011-05-25 Thread Stephan Beal
On Wed, May 25, 2011 at 4:34 PM, Gilles gilles.gana...@free.fr wrote:

 I know it's unusual


Just don't do:

fossil add .

and if you do try it, just remember that you were warned.

-- 
- stephan beal
http://wanderinghorse.net/home/stephan/
___
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] [newbie] Can't get started

2011-05-25 Thread Gilles
On Wed, 25 May 2011 16:37:26 +0200, Stephan Beal
sgb...@googlemail.com wrote:
Just don't do:

fossil add .

and if you do try it, just remember that you were warned.

I will promptly forget what I just read ;-)

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