bugrdiff-backup - Bugs: bug #34126, CLI options inflexible

 
 

bug #34126: CLI options inflexible

Submitted by:  None
Submitted on:  Wed 24 Aug 2011 10:58:33 PM UTC  
 
Category:  None Severity:  2 - Minor
Item Group:  None Status:  Postponed
Privacy:  Public Assigned to:  None
Open/Closed:  Open

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Fri 12 Feb 2016 09:59:16 AM UTC, comment #1:

postponed for migration to github

david kempe <davekempe>
Project Administrator
Wed 24 Aug 2011 10:58:33 PM UTC, original submission:

The parse_cmdlineoptions() function enforces an ordering in the options that isn't clear from the documentation. Generally speaking, options (--compare-hash) should be allowed in any order and only required arguments ([source destination], [statfile1 statfile2 ...], etc) should need to have an ordering enforced.

Python's OptParse was released in Python 2.3 and exists up until 2.7. It's deprecated for argparse, which is available in Python 2.7 and Python 3+.

I suspect we don't want to require Python 2.7, but we can probably stomach dropping support for Python 2.2 and prior.

Expected Behaviour:
$ rdiff-backup backup/ -l
increments.2011-08-23T12:00:04-05:00.dir Tue Aug 23 12:00:04 2011
increments.2011-08-24T12:00:05-05:00.dir Wed Aug 24 12:00:05 2011
increments.2011-08-24T14:47:58-05:00.dir Wed Aug 24 14:47:58 2011
Current mirror: Wed Aug 24 17:19:17 2011
$ rdiff-backup -l backup/
increments.2011-08-23T12:00:04-05:00.dir Tue Aug 23 12:00:04 2011
increments.2011-08-24T12:00:05-05:00.dir Wed Aug 24 12:00:05 2011
increments.2011-08-24T14:47:58-05:00.dir Wed Aug 24 14:47:58 2011
Current mirror: Wed Aug 24 17:19:17 2011

Observed Behaviour
$ rdiff-backup backup/ -l
Fatal Error: File server-bak does not look like an increment file.
Try restoring from an increment file (the filenames look like
"foobar.2001-09-01T04:49:04-07:00.diff").

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by davekempe (Posted a comment)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

     

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-02-12 davekempe Severity3 - Normal => 2 - Minor
        StatusNone => Postponed

    Back to the top


    Powered by Savane 3.3