How can you lock files using an Hg repository hosted by Bitbucket?

Because our project handles a lot of binary files and art assets (game developed in Unity 3D) we really need locking ala SVN to keep our artists from stomping all over eachother. I know there is a locking extension for Hg, but how do I use it with a bitbucket hosted repo? Can I? I'm worried that even if I figure it out, TortoiseHg won't have a graphical hook for locking whch defeats the purpose since it is finicky artists that need the feature and asking them to use the command line is like asking a cat to take a shower.

3 answers

This widget could not be displayed.

I'm the author of the lock extension (http://mercurial.selenic.com/wiki/LockExtension). You cannot use it with Bitbucket since it must be enabled on both the client- and the server-side (and Bitbucket doesn't allow you to enable extensions on the server-side).

This widget could not be displayed.

Anna,

Bitbucket doesn't offer any server side hooks configuration options at the moment. In adiditon to that, we don't recommend placing image/binary file data in Mercurial. All your code is fine, but the image data doesn't work well with Mercurial and your repository will grow very fast.

At the moment, I'm not aware of any great tools for this workflow, but perhaps someone else here can make a suggestion.

This widget could not be displayed.

You can apply a commit policy to your Mercurial repos using the Commit Policy Plugin, and reject the commits that would try to modify the files you wanted to lock. You can lock directories, files or mixed.

Here is the tutorial for implementing commit policies with Bitbucket Cloud.

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in Teamwork

What teamwork quotes inspire you?

Hey everyone! My name is Natalie and I'm an editor of the Atlassian Blog and I've got a question for you: What's your favorite quote about teamwork?  We've compiled a list here, along with...

147 views 16 7
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you