Feature Request: --noedit and --date switches

Bug #1173703 reported by Thomas
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
devscripts (Ubuntu)
New
Wishlist
Unassigned

Bug Description

Hope this is a good place to put ...

Whats the problem? I need to create a changelog file from a git history via bash script. Therefore I added two changes into the perl debchange script which I would like to propose as a permanent improvement.

Line 900, instead of simply getting the system date, allow to provide a date opt_date via command line:

...
my $DATE = undef;
if ($opt_date) {
    # parse time string and re-format, same as -R
    my $time = str2time($opt_date, $opt_tz);
    $DATE = time2str("%a, %e %b %Y %T %z", $time);
} else {
    # Get the date
    my $date_cmd = ($opt_tz ? "TZ=$opt_tz " : "") . "date -R";
    chomp($DATE=`$date_cmd`);
}
...

Line 1473, really skip the editor to allow batch processing by a new option opt_noedit:

# Now Run the Editor; always run if doing "closes" to give a chance to check
# @changed: for batch processing allow to skip editing
...
if (!$opt_noedit and ((!$TEXT and !$EMPTY_TEXT and ! ($opt_create and $opt_empty)) or @closes_text or
    ($opt_create and ! ($PACKAGE ne 'PACKAGE' and $VERSION ne 'VERSION')))) {
...

I do have the rare impression that this here might not be the right place ... but I could not find a better one. Feel free to advice me to do better.
thx

Colin Watson (cjwatson)
affects: alien (Ubuntu) → devscripts (Ubuntu)
Changed in devscripts (Ubuntu):
importance: Undecided → Wishlist
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.