Re: [fossil-users] Trying out fossil: two issues with branches and empty folders

2011-11-14 Thread Konstantin Khomoutov
On Mon, 14 Nov 2011 12:32:40 +0100
Stephan Beal  wrote:

[...]
> Fossil doesn't track directories. If you want to get rid of empty
> ones, one way to do this in Unix is:
> 
> find . -type d | xargs rmdir
> 
> Notes:
> 
> a) rmdir will refuse to delete non-empty dirs, so the above will
> likely spit out harmless warnings for non-emtpy dirs.
> b) spaces and whatnot in the names will break the above (how
> best/easiest to fix it depends partly on whether you're using GNU
> find or not).
With GNU find it should be possible to just do
find . -type d -empty -delete
___
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] Trying out fossil: two issues with branches and empty folders

2011-11-14 Thread David Bovill
On 14 November 2011 12:05, Richard Hipp  wrote:

> "fossil branch new" simply creates a new check-in which is unchanged from
> the previous check-in.  It is equivalent to doing:
>
>  fossil commit -f --branch Minimal
>

OK - thanks, the --force option will get me what I need.
___
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] Trying out fossil: two issues with branches and empty folders

2011-11-14 Thread Richard Hipp
On Mon, Nov 14, 2011 at 6:56 AM, David Bovill wrote:

> Thanks for that. Is the behaviour I am seeing for creating new branches
> using:
>
> fossil branch new "Minimal" trunc
>
> normal (always asking for a pgp signature), or am I making a syntax error
> somewhere? I've just upgraded to the latest build and ran "fossil all
> rebuild", but get the same behaviour?
>

"fossil branch new" simply creates a new check-in which is unchanged from
the previous check-in.  It is equivalent to doing:

 fossil commit -f --branch Minimal

So if you have fossil configured to ask for the PGP signature when you
commit (which is off by default) then it shouldn't be asking for the PGP
signature when you do the "branch new".

If it is asking for PGP signatures, that's probably a (minor) bug.  I never
do "fossil branch new" myself - which is why I've never noticed this.



>
> On 14 November 2011 11:32, Stephan Beal  wrote:
>
>> On Mon, Nov 14, 2011 at 12:17 PM, David Bovill 
>> wrote:
>>
>>> *Empty Folders*
>>> When switching between branches, files are removed but empty folders are
>>> left hanging around. Empty folders also do not show up with "fossil
>>> extras". I'm looking to switch between branches, and not have separate
>>> checkouts, but need to avoid these empty folders. What's the syntax / best
>>> way to do this? I could I guess script something to delete all the files
>>> before checking out a branch, but this seems ugly?
>>>
>>
>> Fossil doesn't track directories. If you want to get rid of empty ones,
>> one way to do this in Unix is:
>>
>> find . -type d | xargs rmdir
>>
>> Notes:
>>
>> a) rmdir will refuse to delete non-empty dirs, so the above will likely
>> spit out harmless warnings for non-emtpy dirs.
>> b) spaces and whatnot in the names will break the above (how best/easiest
>> to fix it depends partly on whether you're using GNU find or not).
>>
>> --
>> - 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
>>
>>
>
> ___
> 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] Trying out fossil: two issues with branches and empty folders

2011-11-14 Thread David Bovill
Thanks for that. Is the behaviour I am seeing for creating new branches
using:

fossil branch new "Minimal" trunc

normal (always asking for a pgp signature), or am I making a syntax error
somewhere? I've just upgraded to the latest build and ran "fossil all
rebuild", but get the same behaviour?

On 14 November 2011 11:32, Stephan Beal  wrote:

> On Mon, Nov 14, 2011 at 12:17 PM, David Bovill 
> wrote:
>
>> *Empty Folders*
>> When switching between branches, files are removed but empty folders are
>> left hanging around. Empty folders also do not show up with "fossil
>> extras". I'm looking to switch between branches, and not have separate
>> checkouts, but need to avoid these empty folders. What's the syntax / best
>> way to do this? I could I guess script something to delete all the files
>> before checking out a branch, but this seems ugly?
>>
>
> Fossil doesn't track directories. If you want to get rid of empty ones,
> one way to do this in Unix is:
>
> find . -type d | xargs rmdir
>
> Notes:
>
> a) rmdir will refuse to delete non-empty dirs, so the above will likely
> spit out harmless warnings for non-emtpy dirs.
> b) spaces and whatnot in the names will break the above (how best/easiest
> to fix it depends partly on whether you're using GNU find or not).
>
> --
> - 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
>
>
___
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] Trying out fossil: two issues with branches and empty folders

2011-11-14 Thread Stephan Beal
On Mon, Nov 14, 2011 at 12:17 PM, David Bovill wrote:

> *Empty Folders*
> When switching between branches, files are removed but empty folders are
> left hanging around. Empty folders also do not show up with "fossil
> extras". I'm looking to switch between branches, and not have separate
> checkouts, but need to avoid these empty folders. What's the syntax / best
> way to do this? I could I guess script something to delete all the files
> before checking out a branch, but this seems ugly?
>

Fossil doesn't track directories. If you want to get rid of empty ones, one
way to do this in Unix is:

find . -type d | xargs rmdir

Notes:

a) rmdir will refuse to delete non-empty dirs, so the above will likely
spit out harmless warnings for non-emtpy dirs.
b) spaces and whatnot in the names will break the above (how best/easiest
to fix it depends partly on whether you're using GNU find or not).

-- 
- 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


[fossil-users] Trying out fossil: two issues with branches and empty folders

2011-11-14 Thread David Bovill
Hello I've been trying out fossil, and cam across two things so far that
don't seem quite right. Could anyone advise if I am doing something wrong?

*Creating a branch*
When I use:

fossil commit --branch "New Branch" - m "Creating a new branch"

a new branch is created without a prompt, but when I use:

fossil branch new "Another Branch" trunk

I get prompted for my gpg password? fossil settings clearsign is set to
default, and setting it to "off" makes no difference.

*Empty Folders*
When switching between branches, files are removed but empty folders are
left hanging around. Empty folders also do not show up with "fossil
extras". I'm looking to switch between branches, and not have separate
checkouts, but need to avoid these empty folders. What's the syntax / best
way to do this? I could I guess script something to delete all the files
before checking out a branch, but this seems ugly?
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users