Problem with binary files (images)
Smith, Michael
Michael.Smith at thalesgroup.com.au
Thu Jul 22 23:06:37 UTC 2010
> I'm keeping one of my sites on mercurial repository. I've observed, that
> sometimes, when I modify some of my layout images and commit them
> (mercurial installed locally sees the changes and add it to commit) the
> site server (where I keep my repo) doesn't apply changes to this binary
> files (images). Text files are always updated with no problems. How to
> prevent such a problems? Does the problem may be in different versions
> of mercurial on developers of the site computers and server?
A bit more information would be helpful. I keep many of my web sites in mercurial and I have not had any problems with binary files. The way I work is as follows:
I edit on my workstation, in my clone
I commit my changes
A commit hook does a push to the web server
On the web server a changegroup hook does an automatic "hg update"
For me this process is 100% reliable. I am running ubuntu on the client and netbsd on the server.
I suggest you check the status of the repository on the server. Are there any locally modified files? If you modify files directly on the server you run the risk of creating a new head when you push, which could lead to the problem you describe (or a version of it).
--
Michael Smith
DISCLAIMER:---------------------------------------------------------------------------
This e-mail transmission and any documents, files and previous e-mail messages
attached to it are private and confidential. They may contain proprietary or copyright
material or information that is subject to legal professional privilege. They are for
the use of the intended recipient only. Any unauthorised viewing, use, disclosure,
copying, alteration, storage or distribution of, or reliance on, this message is
strictly prohibited. No part may be reproduced, adapted or transmitted without the
written permission of the owner. If you have received this transmission in error, or
are not an authorised recipient, please immediately notify the sender by return email,
delete this message and all copies from your e-mail system, and destroy any printed
copies. Receipt by anyone other than the intended recipient should not be deemed a
waiver of any privilege or protection. Thales Australia does not warrant or represent
that this e-mail or any documents, files and previous e-mail messages attached are
error or virus free.
--------------------------------------------------------------------------------------
More information about the Mercurial
mailing list