darcs

Issue 2500 darcs amend on darcs-prefs leaves a local change to the darcs-prefs

Title darcs amend on darcs-prefs leaves a local change to the darcs-prefs
Priority bug Status resolved
Milestone Resolved in
Superseder Nosy List lemming
Assigned To
Topics

Created on 2016-06-01.20:57:29 by lemming, last changed 2020-06-21.12:34:07 by bfrk.

Messages
msg19229 (view) Author: lemming Date: 2016-06-01.20:57:27
/tmp/amend-prefs> darcs-2.12.0 initialize
Repository initialized.
/tmp/amend-prefs> darcs-2.12.0 setpref test foo
Changing value of test from '' to 'foo'
/tmp/amend-prefs> darcs-2.12.0 record -m "test: foo"
changepref test

foo
Shall I record this change? (1/1)  [ynW...], or ? for more options: y
Do you want to Record these changes? [Yglqk...], or ? for more options: y
Finished recording patch 'test: foo'
/tmp/amend-prefs> darcs-2.12.0 setpref test bar
Changing value of test from 'foo' to 'bar'
/tmp/amend-prefs> darcs-2.12.0 amend
patch eff9414d60718a804e851099b0ebf9136b824ab9
Author: haskell@henning-thielemann.de
Date:   Wed Jun  1 23:10:00 CEST 2016
   * test: foo
Shall I amend this patch? [yNjk...], or ? for more options: y
changepref test
foo
bar
Shall I record this change? (1/1)  [ynW...], or ? for more options: y
Do you want to Record these changes? [Yglqk...], or ? for more options: y
Finished amending patch:
patch 10ffbe3fff937152dfb516672f3d9fab514f7c0d
Author: haskell@henning-thielemann.de
Date:   Wed Jun  1 23:10:17 CEST 2016
   * test: foo
/tmp/amend-prefs> darcs whatsnew
changepref test

bar




This is wrong. There should not be a changepref patch anymore. However, 
the updated preferences were recorded. I check a clone of the repository:


/tmp/amend-prefs> cd ..
/tmp> darcs-2.12.0 get amend-prefs
Directory or file '/tmp/amend-prefs' already exists, creating repository as '/tmp/amend-prefs_0'
Copying patches, to get lazy repository hit ctrl-C...
Finished cloning.
/tmp> cd amend-prefs_0/
/tmp/amend-prefs_0> cat _darcs/prefs/prefs
test bar
/tmp/amend-prefs_0> darcs whatsnew
No changes!
/tmp/amend-prefs_0> darcs-2.12.0 whatsnew
No changes!
msg22099 (view) Author: bfrk Date: 2020-06-21.12:34:05
I can no longer reproduce this. Presumably resolved by one of my 
(many) fixes wrt pending.
History
Date User Action Args
2016-06-01 20:57:29lemmingcreate
2020-06-21 12:34:07bfrksetpriority: bug
status: unknown -> resolved
messages: + msg22099