New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[with second patch] make sage -merge more user-friendly #6378
Comments
comment:1
The above adds all but the email functionality. I'll add that in pretty soon. |
Author: boothby |
comment:3
Using |
comment:4
I guess I'm a little confused -- you've mentioned that the problem you were hitting is that the script would often forget to pop patches from the queue, yet you've removed code that pops patches in several places. That seems confusing to me ... in particular, in 4 places in the second patch above, you've removed code that pops patches -- why? |
Attachment: scripts-6378-automerge.patch.gz flattened & based on 4.0.2 |
comment:5
note, the 4 places I removed code to pop patches is actually handed in the calling function -- hence, it should be more robust, not less as a result. |
This comment has been minimized.
This comment has been minimized.
Reviewer: Craig Citro, |
Changed author from boothby to Tom Boothby, Craig Citro |
comment:7
I'm generally happy with Tom's changes. In fact, one should note that no patch of his needs merged -- these changes are already live in sage 4.1 and 4.1.1. Looks like someone's been editing trunk. ( My referee report comes in the form of two new patches, one for the bin repo, and the other for the main repo. The change to the main repo is tiny -- it's just changing The patch to the bin repo does the following:
I ran some tests, but I didn't do any exhaustive testing on |
apply to bin repo |
Attachment: trac-6378-bin.patch.gz apply to main repo |
comment:8
Attachment: trac-6378-main.patch.gz Question: how well is this documented? As well as all the functions in the scripts having docstrings, I think we need to have this all properly in the developers manual. Recently I wanted to demonstrate the merge feature to a newcomer, and found that I couldn't remember what all the command line options were, and could not find them documented. (Of course, it is possible that they are somewhere! I remember seeing them in a sage-devel post, but that is hardly acceptable!) |
comment:9
This is a very good point. I wrote up an explanation at |
comment:10
Great -- I also meant that when you get this:
then as well as finding something human-readable in that script file, there could be more usage instructions in (say) the reference manual. That should go for all the other command-line options, of course: a sort of "man sage"-type output. Anyway, adding a reference to wiki.sagemath.org/release would already be useful! |
comment:11
Replying to @craigcitro:
Meanwhile(?) http://wiki.sagemath.org/release appears to be a dead link. http://wiki.sagemath.org/devel/ReleaseManagement is all I've found. [I really love trac... I did not delete -Leif |
comment:12
Hi Leif, Yep, you're right -- someone moved that content and didn't leave a link. You're right -- the content was moved to the second link you mention. I've left a note pointing people to the right place on the wiki ... Thanks! |
Rebase on #8712. Apply this patch only. See comments for more info. |
comment:13
Attachment: trac_6378-scripts-rebase.patch.gz The patch to the main Sage respository is unneeded now, as it's been fixed already by sage-4.4.alpha0. The patch to the scripts repository works fine, except for the email part. It doesn't get the mail argument. Calling it with, say,
results in an error after merging everything, stating that the email address, which is the null string (''), is invalid. This patch rebases it on #8712, while adding the requested documentation. This seems to detect the email argument. |
Changed reviewer from Craig Citro, to Craig Citro, Tim Dumol |
Changed reviewer from Craig Citro, Tim Dumol to Craig Citro, Tim Dumol, John Palmieri |
comment:14
This needs a little rebasing because of my referee's patch at #8712. See the new patch; this replaces the previous one(s). Otherwise, I'm happy with it. |
Attachment: trac_6378-scripts-rebase.v2.patch.gz use this patch only |
comment:15
(The only differences between my patch and the previous one are at the top, the printing of the help messages.) See #9319 for a follow-up. |
comment:16
I'm willing to give timdumol's version a positive review. If someone can review mine (the help messages on lines 95-110 are the only difference), that would be appreciated. |
comment:17
Replying to @jhpalmieri:
Hmmm, I'm ok with John's new help messages, but when will more return codes be tested? I can't tell if this ticket is that urgent s.t. we should postpone such to the follow-up. At least there is already one... (#9319) ;-) |
comment:19
|
Changed author from Tom Boothby, Craig Citro to none |
Changed reviewer from Craig Citro, Tim Dumol, John Palmieri to Jeroen Demeyer |
A few features would be nice to add to sage -merge:
Also, sage -merge doesn't properly handle the '-a -f' combination. Fix that.
CC: @craigcitro @nexttime
Component: scripts
Reviewer: Jeroen Demeyer
Issue created by migration from https://trac.sagemath.org/ticket/6378
The text was updated successfully, but these errors were encountered: