Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 101695 - etc-update breaks svn and cvs tracking of /etc with mv command
Summary: etc-update breaks svn and cvs tracking of /etc with mv command
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Tools (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: 136244
  Show dependency tree
 
Reported: 2005-08-07 19:46 UTC by Wesley Leggette
Modified: 2006-07-20 14:04 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
touches the resulting configuration file (touch-cfgfile.patch,548 bytes, patch)
2005-08-07 19:52 UTC, Wesley Leggette
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Wesley Leggette 2005-08-07 19:46:01 UTC
I am currently using subversion to track changes in /etc. etc-update can
sometimes break this when replacing old configuration files with new ones
because moving untracked files to replace tracked files will result in
subversion not realizing a change has occured in the destination file (cp
apparently does not have this problem).

I reported this problem to the subversion mailing list and was told this occurs
because the timestamp is not updated when using mv. I was told that touching the
file after moving it can solve this problem.

I haven't been able to reproduce the problem, which apparently only occurs if
the mtime is wacked out on the temporary configuration file. So the question is,
should etc-update touch the configuration file after replacing it?

Reproducible: Couldn't Reproduce
Steps to Reproduce:
1.
2.
3.
Comment 1 Wesley Leggette 2005-08-07 19:52:48 UTC
Created attachment 65379 [details, diff]
touches the resulting configuration file

This touches the replaced configuration file to update the mtime. I caught the
mv after replacing with the new config and replacing with the merged config. I
don't know if there are any others.
Comment 2 Marius Mauch (RETIRED) gentoo-dev 2006-07-19 03:36:37 UTC
in r3932
Comment 3 Zac Medico gentoo-dev 2006-07-20 14:04:07 UTC
This has been released in 2.1.1_pre3-r2.