Fossil SCM

When trying to rename a branch into itself, make this a NOP.

jan.nijtmans 2013-12-05 12:09 trunk
Commit 95a809500a8da374e2aa40ccc6d9179d49abdab8
1 file changed +5 -2
+5 -2
--- src/info.c
+++ src/info.c
@@ -2322,12 +2322,15 @@
23222322
@ <tr><th align="right" valign="top">Branching:</th>
23232323
@ <td valign="top">
23242324
@ <label><input id="newbr" type="checkbox" name="newbr"%s(zNewBrFlag) />
23252325
@ Make this check-in the start of a new branch named:</label>
23262326
@ <input type="text" style="width:15;" name="brname" value="%h(zNewBranch)"
2327
- @ onkeyup="gebi('newbr').checked=!!this.value" />
2328
- @ </td></tr>
2327
+ @ onkeyup="gebi('newbr').checked=!!this.value
2328
+ if( zBranchName ){
2329
+ @ && this.value!='%h(zBranchName)'
2330
+ }
2331
+ @ " /></td></tr>
23292332
23302333
if( !fHasClosed ){
23312334
if( is_a_leaf(rid) ){
23322335
@ <tr><th align="right" valign="top">Leaf Closure:</th>
23332336
@ <td valign="top">
23342337
--- src/info.c
+++ src/info.c
@@ -2322,12 +2322,15 @@
2322 @ <tr><th align="right" valign="top">Branching:</th>
2323 @ <td valign="top">
2324 @ <label><input id="newbr" type="checkbox" name="newbr"%s(zNewBrFlag) />
2325 @ Make this check-in the start of a new branch named:</label>
2326 @ <input type="text" style="width:15;" name="brname" value="%h(zNewBranch)"
2327 @ onkeyup="gebi('newbr').checked=!!this.value" />
2328 @ </td></tr>
 
 
 
2329
2330 if( !fHasClosed ){
2331 if( is_a_leaf(rid) ){
2332 @ <tr><th align="right" valign="top">Leaf Closure:</th>
2333 @ <td valign="top">
2334
--- src/info.c
+++ src/info.c
@@ -2322,12 +2322,15 @@
2322 @ <tr><th align="right" valign="top">Branching:</th>
2323 @ <td valign="top">
2324 @ <label><input id="newbr" type="checkbox" name="newbr"%s(zNewBrFlag) />
2325 @ Make this check-in the start of a new branch named:</label>
2326 @ <input type="text" style="width:15;" name="brname" value="%h(zNewBranch)"
2327 @ onkeyup="gebi('newbr').checked=!!this.value
2328 if( zBranchName ){
2329 @ && this.value!='%h(zBranchName)'
2330 }
2331 @ " /></td></tr>
2332
2333 if( !fHasClosed ){
2334 if( is_a_leaf(rid) ){
2335 @ <tr><th align="right" valign="top">Leaf Closure:</th>
2336 @ <td valign="top">
2337

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button