Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by roberto_sc · Apr 04, 2012 at 09:14 PM · merge

Mercurial & Text mode in Asset Serialization = Problem

I use Mercurial in my project and we just switched to "force text" in the Asset Serialization option.

My files are text now, but when I try to merge, I get this "tool opendiff can't handle binary" message. I tried to force FileMerge to merge and it marks the whole file as different.

I tried to switch to DiffMerge and force it to merge, and it tells an important info: "File has a NUL byte at offset 0; this is not valid for encoding..."

The 'file' bash command tells me that those asset files are "text/plain; charset=us-ascii".

Isn't that a bug? I mean, Unity should convert to text files that merge tools are able to merge...

By the way, we are using Mac OSX.

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

2 Replies

· Add your reply
  • Sort: 
avatar image
0
Best Answer

Answer by roberto_sc · Apr 11, 2012 at 09:26 PM

Don't try to convert the project in more than one repository and after merge them.

Somehow it worked when I converted the project on one repo and distributed it to others, that is, no problem in future merges.

The downside is that everybody has to get to the same revision, stop to work and wait for the conversion.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by Kryptos · Apr 04, 2012 at 09:37 PM

  1. Your merging tool sucks (or your config for those tools is incorrect). It works fine with regular diff and diffmerge.

  2. Or you are trying to compare (diff) or merge your current file (in text mode) with the one on the repository (in binary mode). Since one of the file is still binary, this cannot work.

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image roberto_sc · Apr 04, 2012 at 10:04 PM 0
Share

hg diff between the two revisions results in a text file, so both files are in text mode. What could possibly be incorrect in the config file? Did you successfully use this option with $$anonymous$$ercurial in OSX?

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

Merging conflict with Unity library script assemblies 0 Answers

Light map effect on mesh merge 1 Answer

Unity 3D and Cocos2d merged iOS build 1 Answer

How would you go about linking to projects together, and adding a menu? 1 Answer

Is there a way to put images on each side of a cube,so that only clickable areas of the cube would be those images ? 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges