Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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

I'm getting the above noted error when attempting to sync from a remote repository of mine. Using Sourcetree Mac 2.7.6. Not sure what to do about that.

Can I just delete that local repository and then choose to Clone it on the Remote tab of Sourcetree?

2 answers

I  just checked the remote repository and see the .hgtags file there, so I assume that means the most recent Push was done with the default branch checked out, which, as I said above, is the only branch that has an .hgtags file when checked out (the develop branch doesn't).

Those two replies by me were uploaded as Answers by mistake.

Ok. Now I can successfully Pull on the problem computer noted initially. What I did was create another changeset on the Pushing computer and Pushed it. Now it all works okay on the Pulling computer. I'd still love to know why this happened at all, though.

But I do notice that in all three repositories (remote repo and the 2 local repos) I have an .htags file in their default branch and not in their develop branch. Is this a problem? If so, how do I correct it?

I notice in the computer that did the upload to the remote repository, there's an .hgtags file there when the default branch is checked out, but not when the develop branch is checked out. Is that a problem? I usually do a Push from that computer with the develop branch checked out.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Sourcetree

Tip from the team: configure your repos for hosting goodness!

Supported Platforms macOS Windows We recently introduced support for additional hosting services such as GitHub Enterprise, GitLab (Cloud, Community Edition, Enterprise Edition), and...

7,263 views 5 14
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you