Re: [fossil-users] How to close an empty branch?

2015-10-26 Thread Warren Young
On Oct 23, 2015, at 11:32 PM, Andy Bradford  wrote:
> 
> Thus said Warren Young on Fri, 23 Oct 2015 17:35:38 -0600:
> 
>> I don't see how to do it from the command line.
> 
> Have you tried ``fossil amend'' yet?

No.  My eyes slid right over that when looking for a suitable command.

I managed to pass the amendment with a 2/3 majority using the following command 
sequence:

   mkdir ~/bogus-branch
   cd ~/bogus-branch
   f open ~/museum/repo.fossil bogus-branch
   f stat
   f amend 146e8e638db2536ca83b271cf6efe12b6cc99b81 --close

The “stat” command was necessary because I needed to get the UUID of the tip of 
the bogus branch, which I couldn’t get from the UI.

Interestingly, after opening that bogus branch in a new checkout directory, I 
ended up with no files except for .fslckout.

Weird.
___
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] How to close an empty branch?

2015-10-26 Thread Warren Young
On Oct 24, 2015, at 6:57 AM, Richard Hipp  wrote:
> 
> On 10/23/15, Warren Young  wrote:
>> 
>> For some reason, that long history includes a branch that has no checkins,
> 
> How is that even possible in Fossil?

That’s why I mentioned the repo’s long and tangled history.  The bogus branch 
was created about 10 years ago, which means it might have been while we were 
still using CVS at the time.  If we’d switched to SVN by then, it wasn’t all 
that long after the switch.

Anyway, the SVN-to-Fossil-via-Git process preserved that bogus branch, and 
Fossil accepted it on import.

I have no idea how to replicate it, since it happened so long ago.
___
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] How to close an empty branch?

2015-10-26 Thread Warren Young
On Oct 26, 2015, at 1:56 PM, Warren Young  wrote:
> 
> The “stat” command was necessary because I needed to get the UUID of the tip 
> of the bogus branch, which I couldn’t get from the UI.

Looking back on the terminal log, I see that I could have gotten the UUID from 
the output of “fossil open.”  Oh, well.

I also did a “fossil sync”, for what that’s worth.  I’m not absolutely sure it 
was necessary, but it looks like amend doesn’t autosync.  I’ve seen that with 
other commands.
___
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] How to close an empty branch?

2015-10-24 Thread Richard Hipp
On 10/23/15, Warren Young  wrote:
> Matt Welland’s recent post reminded me of a problem I’ve been ignoring in
> our largest Fossil repo, converted from ~12 years of CVS-then-SVN history.
>
> For some reason, that long history includes a branch that has no checkins,

How is that even possible in Fossil?  A branch is a property of a
check-in, and so without a check-in there can be no branch.  I think I
am not understanding your problem


> which means the Fossil UI doesn’t have anything you can click on to close
> the branch. Consequently, it shows up in all listings of open branches.
>
> I don’t see how to do it from the command line, short of “fossil sqlite”.
>
> How do I put this bulletproof vampire zombie down? :)
> ___
> 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] How to close an empty branch?

2015-10-24 Thread tonyp
Very easy to reproduce (Win7, f = fossil):

f new sample.fossil
f o sample.fossil
echo Hello > somefile
f add somefile
f com --branch ghost -m "Save in some branch"
f tag cancel ghost af9e
rem The actual ID above may differ
f up ghost
rem not found: ghost
f bra
f up  --does not tell you the current branch
f up trunk
f bra
rem   ghost
rem * trunk

-Original Message- 
From: Richard Hipp 
Sent: Saturday, October 24, 2015 3:57 PM 
To: Fossil SCM user's discussion 
Subject: Re: [fossil-users] How to close an empty branch? 

On 10/23/15, Warren Young <w...@etr-usa.com> wrote:
> Matt Welland’s recent post reminded me of a problem I’ve been ignoring in
> our largest Fossil repo, converted from ~12 years of CVS-then-SVN history.
>
> For some reason, that long history includes a branch that has no checkins,

How is that even possible in Fossil?  A branch is a property of a
check-in, and so without a check-in there can be no branch.  I think I
am not understanding your problem


> which means the Fossil UI doesn’t have anything you can click on to close
> the branch. Consequently, it shows up in all listings of open branches.
>
> I don’t see how to do it from the command line, short of “fossil sqlite”.
>
> How do I put this bulletproof vampire zombie down? :)
> ___
> 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___
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] How to close an empty branch?

2015-10-24 Thread tonyp
I ran into the same problem just yesterday.  Took me a while to figure out a 
solution.  (And, this may not be the only way but it worked well.)

In my case there were two possibilities.  For one, I could just do 'unhide' and 
see the related timeline.
The other (like yours, probably) did not show anything.  I could not go into 
the branch (by update or open directly into it), or, in general, see anything 
about it; a real ghost!  The problem as it turned out was the only tag 
associated with it was canceled leaving without any tags.  So, I did:

fossil sea cancel tag
(shows all cancel tag related entries.  Find the ID of the one I need by 
looking at the tags for each entry)
>From the UI, find the related artifact (the one that cancels the tag), and get 
>its full ID and shun it, then rebuild.
This will bring the branch back to life, and then you can close it, hide it, 
etc.

-Original Message- 
From: Warren Young 
Sent: Saturday, October 24, 2015 2:35 AM 
To: Fossil SCM user's discussion 
Subject: [fossil-users] How to close an empty branch? 

Matt Welland’s recent post reminded me of a problem I’ve been ignoring in our 
largest Fossil repo, converted from ~12 years of CVS-then-SVN history.

For some reason, that long history includes a branch that has no checkins, 
which means the Fossil UI doesn’t have anything you can click on to close the 
branch. Consequently, it shows up in all listings of open branches.

I don’t see how to do it from the command line, short of “fossil sqlite”.

How do I put this bulletproof vampire zombie down? :)
___
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] How to close an empty branch?

2015-10-24 Thread tonyp
This makes wonder.  Is there any practical reason to allow a check-in without 
any tags?
If not, maybe a warning should be issued when trying to cancel the only 
remaining tag of a check-in.

From: to...@acm.org 
Sent: Saturday, October 24, 2015 11:19 AM
To: Fossil SCM user's discussion 
Subject: Re: [fossil-users] How to close an empty branch?

I ran into the same problem just yesterday.  Took me a while to figure out a 
solution.  (And, this may not be the only way but it worked well.)

In my case there were two possibilities.  For one, I could just do 'unhide' and 
see the related timeline.
The other (like yours, probably) did not show anything.  I could not go into 
the branch (by update or open directly into it), or, in general, see anything 
about it; a real ghost!  The problem as it turned out was the only tag 
associated with it was canceled leaving without any tags.  So, I did:

fossil sea cancel tag
(shows all cancel tag related entries.  Find the ID of the one I need by 
looking at the tags for each entry)
>From the UI, find the related artifact (the one that cancels the tag), and get 
>its full ID and shun it, then rebuild.
This will bring the branch back to life, and then you can close it, hide it, 
etc.

-Original Message- 
From: Warren Young 
Sent: Saturday, October 24, 2015 2:35 AM 
To: Fossil SCM user's discussion 
Subject: [fossil-users] How to close an empty branch? 

Matt Welland’s recent post reminded me of a problem I’ve been ignoring in our 
largest Fossil repo, converted from ~12 years of CVS-then-SVN history.

For some reason, that long history includes a branch that has no checkins, 
which means the Fossil UI doesn’t have anything you can click on to close the 
branch. Consequently, it shows up in all listings of open branches.

I don’t see how to do it from the command line, short of “fossil sqlite”.

How do I put this bulletproof vampire zombie down? :)
___
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] How to close an empty branch?

2015-10-23 Thread Andy Bradford
Thus said Warren Young on Fri, 23 Oct 2015 17:35:38 -0600:

> I don't see how to do it from the command line.

Have you tried ``fossil amend'' yet?

Thanks,

Andy
-- 
TAI64 timestamp: 4000562b1804


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