#16249: dev.abandon() fails
-------------------------------+----------------------------
       Reporter:  saraedum     |        Owner:
           Type:  defect       |       Status:  needs_review
       Priority:  minor        |    Milestone:  sage-6.2
      Component:  misc         |   Resolution:
       Keywords:  beginner     |    Merged in:
        Authors:  Julian Rüth  |    Reviewers:
Report Upstream:  N/A          |  Work issues:
         Branch:               |       Commit:
   Dependencies:               |     Stopgaps:
-------------------------------+----------------------------
Changes (by {'newvalue': u'Julian R\xfcth', 'oldvalue': ''}):

 * keywords:   => beginner
 * author:   => Julian Rüth
 * branch:  u/saraedum/ticket/16249 =>


Old description:

> `sage --dev abandon` with no further arguments fails because the default
> parameter `None` is not replaced with the current branch.

New description:

 The docstring says that the default parameter `ticket_or_branch=None`
 refers to the current branch. However, deleting the current branch is not
 possible. Currently, the error message is not very helpful:
 {{{
 sage: dev.abandon()
 ValueError: name must be a string
 }}}
 Now it prints:
 {{{
 sage: dev.abandon()
 TypeError: abandon() takes at least 2 arguments (1 given)
 }}}

--

--
Ticket URL: <http://trac.sagemath.org/ticket/16249#comment:3>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.

Reply via email to