mercurial - File in repository after clone, but no history -


we have mercurial repository converted subversion while ago , have today noticed there files in repository have no history whatsoever.

one of sympomts of behaviour hg status reports file clean, while hg log reports no changesets same file:

> hg clone [repo] > hg st -c filewithmissinghistory.cs  c  filewithmissinghistory.cs  > hg blame filewithmissinghistory.cs filewithmissinghistory.cs: no such file in rev [...] > hg log filewithmissinghistory.cs > hg log filewithmissinghistory.cs -f abort: cannot follow nonexistent file: "filewithmissinghistory.cs"  > hg log -v | grep filewithmissinghistory.cs  [gives output, there arechangesets mentioning file] 

obviously filenames have been changed in example. i've tried using hg verify, command reports repo fine. has experienced , there bring history "back life"? placing dummy history on files in question acceptable, suboptimal.

edit: i've done more investigation , noticed "filewithmissinghistory.cs" renamed filename (hg copy + delete) in revision 238. if hg update -r238 , hg log on file @ revision not history. doing hg log on original file reports history expected, seems history somehow lost during copy (again, file renamed using hg copy, , changeset indicates file has been copied).

sounds strange, impossible. try debug issue update different revisions , check @ revision file appears in working copy first time. if in binary search fashion (similar how bisect extension works), should find revision introduces file after few updates.

this not solve problem, may in tracking down source.


Comments

Popular posts from this blog

javascript - Enclosure Memory Copies -

php - Replacing tags in braces, even nested tags, with regex -