Re: [fossil-users] Cutting fossil repository

2016-10-09 Thread Richard Hipp
On 10/9/16, Zeev Pekar  wrote:
> I sent two examples and asked whether they were correct. A simple "yes"
> or "no" would be enough...

I don't know.  I don't remember.  In order to find out, I would either
(1) consult the documentation or (2) try the commands out to see what
happened, or (3) both.  But you can do that as easily as I can.

-- 
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] Cutting fossil repository

2016-10-09 Thread Zeev Pekar
I sent two examples and asked whether they were correct. A simple "yes"
or "no" would be enough...

1) Is the following correct?

fossil purge artifacts 86848307235407

2) can I  delete several commits like this?

fossil purge artifacts 86848307235407 563453457234 56488921223

Thanks.


On Sat, 2016-10-08 at 18:40 -0400, Richard Hipp wrote:
> On 10/8/16, Adam Jensen  wrote:
> >
> > The reluctance of some programmer communities to provide examples has
> > always surprised me.
> 
> In this case, the documentation
> (https://www.fossil-scm.org/fossil/help?cmd=purge) consists of a
> series of examples, each followed by an explanation of what that
> example does.
> 
> I do not know how to make the documentation any clearer.
> Contributions from others who do know how to make better documentation
> will be greatly appreciated.
> 

___
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] Cutting fossil repository

2016-10-08 Thread Adam Jensen
On 10/08/2016 06:40 PM, Richard Hipp wrote:
> I do not know how to make the documentation any clearer.

It's something I've been thinking about [in general] for a while and I
just used this opportunity to inject the idea into the Fossil community.
This seems like the sweet spot with TCL on one side (terrible
documentation/organization) and SQLite on the other (stellar software
engineering).

___
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] Cutting fossil repository

2016-10-08 Thread Richard Hipp
On 10/8/16, Adam Jensen  wrote:
>
> The reluctance of some programmer communities to provide examples has
> always surprised me.

In this case, the documentation
(https://www.fossil-scm.org/fossil/help?cmd=purge) consists of a
series of examples, each followed by an explanation of what that
example does.

I do not know how to make the documentation any clearer.
Contributions from others who do know how to make better documentation
will be greatly appreciated.

-- 
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] Cutting fossil repository

2016-10-08 Thread Adam Jensen
On 10/08/2016 02:23 PM, Zeev Pekar wrote:
> Ok. I understood the consequences - I'll operate on a copy of a repo. So
> could you, please, provide the two examples anyway?

*snide humor alert*

The reluctance of some programmer communities to provide examples has
always surprised me. I think documentation would be much more effective
if there were comprehensive examples throughout. It seems like those
comprehensive examples could be written in a way such that they could be
executed as part of the test suite, mostly as a way to verify that the
documentation is still in sync with the source.

But I come from an electrical engineering education where the goals are
to create clear, concise understandings in the most efficient and
effective way. Open source software communities seem to have different
values/cult'ure.

___
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] Cutting fossil repository

2016-10-08 Thread Zeev Pekar
1) But what about the first case? Is the following correct:

fossil purge artifacts 86848307235407

2) can I  delete several commits like this:

fossil purge artifacts 86848307235407 563453457234 56488921223

Thanks.

On Sat, 2016-10-08 at 14:58 -0400, Richard Hipp wrote:
> On 10/8/16, Zeev Pekar  wrote:
> >
> > 2) using shun:
> >
> > fossil shun 86848307235407 (this is just a guess since this one I
> > couldn't find in docs)
> >
> > Am I right?
> 
> There is no "shun" command.  Shunning must be done from the web interface.

___
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] Cutting fossil repository

2016-10-08 Thread Richard Hipp
On 10/8/16, Zeev Pekar  wrote:
>
> 2) using shun:
>
> fossil shun 86848307235407 (this is just a guess since this one I
> couldn't find in docs)
>
> Am I right?

There is no "shun" command.  Shunning must be done from the web interface.
-- 
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] Cutting fossil repository

2016-10-08 Thread Zeev Pekar
Ok, so let me try... Let's say we want to delete a commit 86848307235407

1) using purge it should be:

fossil purge artifacts 86848307235407

2) using shun:

fossil shun 86848307235407 (this is just a guess since this one I
couldn't find in docs)

Am I right?

Thank you.

On Sat, 2016-10-08 at 14:28 -0400, Richard Hipp wrote:
> On 10/8/16, Zeev Pekar  wrote:
> > Ok. I understood the consequences - I'll operate on a copy of a repo. So
> > could you, please, provide the two examples anyway?
> >
> 
> I do not know how to improve upon
> https://www.fossil-scm.org/fossil/help?cmd=purge
> 
> If you can explain what part of the documentation is unclear, perhaps
> we can clarify it for 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] Cutting fossil repository

2016-10-08 Thread Richard Hipp
On 10/8/16, Zeev Pekar  wrote:
> Ok. I understood the consequences - I'll operate on a copy of a repo. So
> could you, please, provide the two examples anyway?
>

I do not know how to improve upon
https://www.fossil-scm.org/fossil/help?cmd=purge

If you can explain what part of the documentation is unclear, perhaps
we can clarify it for you.

-- 
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] Cutting fossil repository

2016-10-08 Thread Zeev Pekar
Ok. I understood the consequences - I'll operate on a copy of a repo. So
could you, please, provide the two examples anyway?

Thank you.


On Sat, 2016-10-08 at 14:19 -0400, Richard Hipp wrote:
> On 10/8/16, Zeev Pekar  wrote:
> > Could somebody, please, provide an example of deleting a commit, using
> > a) purge
> > b) shun
> >
> 
> If you need an example in order to pull this off, then it is not
> something you should attempt.  The use of purge and shun is for
> experts only.  If you do not have a full understanding of what you are
> doing, you will likely end up making a mess.
> 
> Fossil is designed to never forget things.  You are asking it to
> forget, which goes against its very nature.  Some provisions are made
> for this, for exceptional circumstances.  But those provisions are
> very seldom used, and are not novice-friendly.
> 
> 

___
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] Cutting fossil repository

2016-10-08 Thread Richard Hipp
On 10/8/16, Zeev Pekar  wrote:
> Could somebody, please, provide an example of deleting a commit, using
> a) purge
> b) shun
>

If you need an example in order to pull this off, then it is not
something you should attempt.  The use of purge and shun is for
experts only.  If you do not have a full understanding of what you are
doing, you will likely end up making a mess.

Fossil is designed to never forget things.  You are asking it to
forget, which goes against its very nature.  Some provisions are made
for this, for exceptional circumstances.  But those provisions are
very seldom used, and are not novice-friendly.


-- 
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] Cutting fossil repository

2016-10-08 Thread Zeev Pekar
Could somebody, please, provide an example of deleting a commit, using
a) purge
b) shun

Thank you in advance!
Zeev


On Fri, 2016-10-07 at 15:57 -0400, Richard Hipp wrote:
> On 10/7/16, sky5w...@gmail.com  wrote:
> > Cool.
> > How does 'fossil purge obliterate' differ from 'fossil shun'?
> 
> "shun" rmembers the SHA1 hash and will never again accept that SHA1
> hash on a sync.  "fossil purge whatever" simply deletes the artifacts
> from the local repo.  They will be restored on a sync from another
> repo that holds them.
> 
> I think.  Double-check before relying on what I said above.  :-)
> 
> > Is shun obsoleted or superseded by purge now?
> > Can I achieve the obliteration entirely from the cmd line?
> >
> > Thanks!
> >
> 
> 

___
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] Cutting fossil repository

2016-10-07 Thread Richard Hipp
On 10/7/16, sky5w...@gmail.com  wrote:
> Cool.
> How does 'fossil purge obliterate' differ from 'fossil shun'?

"shun" rmembers the SHA1 hash and will never again accept that SHA1
hash on a sync.  "fossil purge whatever" simply deletes the artifacts
from the local repo.  They will be restored on a sync from another
repo that holds them.

I think.  Double-check before relying on what I said above.  :-)

> Is shun obsoleted or superseded by purge now?
> Can I achieve the obliteration entirely from the cmd line?
>
> Thanks!
>


-- 
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] Cutting fossil repository

2016-10-07 Thread sky5walk
Cool.
How does 'fossil purge obliterate' differ from 'fossil shun'?
Is shun obsoleted or superseded by purge now?
Can I achieve the obliteration entirely from the cmd line?

Thanks!
___
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] Cutting fossil repository

2016-10-07 Thread Richard Hipp
Maybe you could make a copy of the repo then "purge" all those
check-ins and files you don't want from the copy:
https://www.fossil-scm.org/fossil/help?cmd=purge

On 10/7/16, Zeev Pekar  wrote:
> Hello,
>
> if one needs to provide a partial repo (from the beginning till certain
> date/commit) to a third party - how should he generate this new partial
> repo from the existing full one?
>
> 1) is there a way to "cut" a repo till certain date/commit? if yes -
> how?
>
> 2) is it possible to delete all the commits (which were made later than
> the required date) by hand, one by one? if yes - how?
>
> Thank you in advance,
> Zeev
>
> ___
> 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] Cutting fossil repository

2016-10-07 Thread Stephan Beal
On Fri, Oct 7, 2016 at 9:20 AM, Zeev Pekar  wrote:

> Hello,
>
> if one needs to provide a partial repo (from the beginning till certain
> date/commit) to a third party - how should he generate this new partial
> repo from the existing full one?
>
> 1) is there a way to "cut" a repo till certain date/commit? if yes -
> how?
>

Not an easy way, no. Writing a script which pulls one version at a time and
checks them into a new repo would (hypothetically) not be too difficult,
but it would not account for branches/merging without notably more effort.

2) is it possible to delete all the commits (which were made later than
> the required date) by hand, one by one? if yes - how?
>

It's hypothetically possible to "pop" versions off the top of a repo, one
version at a time, but it's never been implemented. i looked into it about
3 years ago and found that the it would require a relatively large effort
[for me] to implement, so i abandoned it. :/

-- 
- stephan beal
http://wanderinghorse.net/home/stephan/
"Freedom is sloppy. But since tyranny's the only guaranteed byproduct of
those who insist on a perfect world, freedom will have to do." -- Bigby Wolf
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


[fossil-users] Cutting fossil repository

2016-10-07 Thread Zeev Pekar
Hello,

if one needs to provide a partial repo (from the beginning till certain
date/commit) to a third party - how should he generate this new partial
repo from the existing full one?

1) is there a way to "cut" a repo till certain date/commit? if yes -
how?

2) is it possible to delete all the commits (which were made later than
the required date) by hand, one by one? if yes - how?

Thank you in advance,
Zeev

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