hg cat' failed with code 1:'.hgtags: no such file in rev ...

Ralph Alvy ralph at ralphalvy.com
Sat Dec 8 15:59:30 UTC 2018


I get that error when attempting to Pull from a remote to my Mac Mini. I 
think this happens if the latest Push from my MacBook Pro involved 
adding a tag to my default branch. On the other hand, if the latest 
changes involved work on my develop branch, and those were Pushed from 
my MacBook Pro, then Pulling on my Mac Mini works fine.

I use Sourcetree Mac for all this.

I imagine the problem is that my develop branch has no .hgtags file. 
This is because I unfortunately created that branch, a while ago, BEFORE 
I created the first tag on my default branch.

If I simply add a tag to my develop branch on my MacBook Pro and Push 
it, will this problem go away? I realize that when I do a Merge on 
default I will get a conflict at that point (for .hgtags), but that's 
easily resolved.


More information about the Mercurial mailing list