FS#25109 - [mercurial] Check for /etc/mercurial/hgrc

Attached to Project: Arch Linux
Opened by David Rheinsberg (dvdhrm) - Tuesday, 12 July 2011, 09:03 GMT
Last edited by Giovanni Scafora (giovanni) - Tuesday, 12 July 2011, 12:14 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Giovanni Scafora (giovanni)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Installing new mercurial 1.9-2 fails with:

(9/9) checking for file conflicts [############################################################] 100%
error: failed to commit transaction (conflicting files)
mercurial: /etc/mercurial/hgrc exists in filesystem
Errors occurred, no packages were upgraded.

The global hgrc file was created by me and I guess mercurial install should check whether it exists and create a hgrc.pacnew if it does.

Removing the file and adding my change after the update solved the issue.

Regards
David
This task depends upon

Closed by  Giovanni Scafora (giovanni)
Tuesday, 12 July 2011, 12:14 GMT
Reason for closing:  Not a bug
Comment by Ionut Biru (wonder) - Tuesday, 12 July 2011, 09:15 GMT
pacman doesn't work like that.

imo a news entries is needed with the proper instructions like this:
mv /etc/mercurial/hgrc /etc/mercurial/hgrc.mine
pacman -Syu
mv /etc/mercurial/hgrc.mine /etc/mercurial/hgrc
Comment by David Rheinsberg (dvdhrm) - Tuesday, 12 July 2011, 09:18 GMT
Hm. Ok. Its a little bit annoying but ok, maybe patching pacman would help here. Thanks for that fast answer.
Comment by Ionut Biru (wonder) - Tuesday, 12 July 2011, 12:14 GMT
still, is not related to pacman. man pacman, HANDLING CONFIG FILES. there is no way for pacman to know what to do with hgrc from your system because is not tracked. From now own it will be the case since is present in the package.

Loading...