NewBranch.bjs
[gitlive] / NewBranch.vala
index 83284d2..230fc6f 100644 (file)
@@ -201,16 +201,18 @@ public class NewBranch : Object
             
                var ticket_id = (string) val1;
                
+               var name = RooTicket.singleton().usernameLocal();
+               
                if (ticket_id == "") {
-                       _this.name.el.set_text("wip_NAME_DATE");
+                       _this.name.el.set_text("wip_%s_%s".printf(name,date));
                        return;
                }
                
                var ticket = RooTicket.singleton().getById(ticket_id);
                
-               _this.name.el.set_text("wip_NAME_T%s_%s".printf(ticket.id, ticket.summaryToBranchName()));
+               _this.name.el.set_text("wip_%s_T%s_%s".printf(name,ticket.id, ticket.summaryToBranchName()));
                
-               //GLib.debug ("Selection: %s, %s\n", (string) val1, (string) val2);
+               //GLib.debug (//"Selection: %s, %s\n", (string) val1, (string) val2);
             });
         }