There are certainly some things that may work in Linux and not Windows if you are using command line calls or file locations. If they are HG commands, they will work in any system. I shy away from using command like commands whenever possible or for that very reason and living in the Mono framework can help avoid headaches. Also, if you are making command line or file location hard coded locations, you might consider using a more general usage so that it doesn't break for other users.
My scripts were written for myself and, with a few exceptions, should still be usable for most anyone with minor tweaking. Since my coding style is to include lots of in-line comments, it should be easy for others to understand what needs altering especially since HG has a built-in debugger that tells the user the line where the code broke.
Of course, this is your code for yourself but you are including it in an image that you are encouraging others to use. If you share your work then it's always best to make it usable for the audience you are recommending it to.