Patchwork hgk: add .diff extension when exporting commits

login
register
mail settings
Submitter Andrew Shadura
Date March 25, 2014, 9:50 p.m.
Message ID <823d9c94a1e20038f8af.1395784208@localhost.localdomain>
Download mbox | patch
Permalink /patch/4064/
State Accepted
Commit 777daa412e56f8098de134ab2704a9e6531b0f83
Headers show

Comments

Andrew Shadura - March 25, 2014, 9:50 p.m.
# HG changeset patch
# User Andrew Shadura <andrew@shadura.me>
# Date 1395784079 -3600
#      Tue Mar 25 22:47:59 2014 +0100
# Node ID 823d9c94a1e20038f8af723455c2f4606e286c0d
# Parent  07445a7e9050ee48bff0e04bb1c240e71cfea290
hgk: add .diff extension when exporting commits

Append the .diff extension automatically.
Matt Mackall - April 3, 2014, 8:26 p.m.
On Tue, 2014-03-25 at 22:50 +0100, Andrew Shadura wrote:
> # HG changeset patch
> # User Andrew Shadura <andrew@shadura.me>
> # Date 1395784079 -3600
> #      Tue Mar 25 22:47:59 2014 +0100
> # Node ID 823d9c94a1e20038f8af723455c2f4606e286c0d
> # Parent  07445a7e9050ee48bff0e04bb1c240e71cfea290
> hgk: add .diff extension when exporting commits

Queued for default, thanks.

Patch

diff --git a/contrib/hgk b/contrib/hgk
--- a/contrib/hgk
+++ b/contrib/hgk
@@ -3910,7 +3910,7 @@  proc writecommit {} {
     grid x $top.head -sticky w
     ttk::label $top.flab -text "Output file:"
     ttk::entry $top.fname -width 60
-    $top.fname insert 0 [file normalize "commit-[string range $rowmenuid 0 6]"]
+    $top.fname insert 0 [file normalize "commit-[string range $rowmenuid 0 6].diff"]
     grid $top.flab $top.fname -sticky w
     ttk::frame $top.buts
     ttk::button $top.buts.gen -text "Write" -command wrcomgo