Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • thg thg
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 834
    • Issues 834
    • List
    • Boards
    • Service Desk
    • Milestones
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • mercurial
  • TortoiseHg
  • thgthg
  • Issues
  • #2076

Closed
Open
Created Aug 10, 2012 by Bitbucket Importer@bitbucket_importerOwner

merge-doc.js cannot merge Word 2010 documents

Created originally on Bitbucket by navarro (Ricardo Navarro)

Hello,

This applies to TortoiseHg 2.4.2. Version 2.1.4 does not have this issue.

I'm going to give a way to reproduce the problem, it might be better:

  1. Create a repository
  2. Add a word document (e.g. wordfile.docx) with some content and commit
  3. Create a named branch (e.g. Branch 1)and modify the word document, commit
  4. Update to the default branch, modify the word document and commit
  5. You end up with two branches, default and branch 1, with two versions of the same document
  6. Try "Merge with local" (branch 1 with default)
  7. Click on resolve conflicts, Resolve conflicts window shows
  8. Use docdiff and click on Tool Resolve
  9. An error windows shows for script merge-doc.js, line 92, char 9: "Error: This file could not be found. (C:\repo\wordfile)"

As you can see, the argument given to the script merge-doc.js is "wordfile" and it shall be "wordfile.docx".

If you print out the variable sBaseDoc, in line 44 of merge-doc.js, you can see that it is "wordfile" instead of "wordfile.docx". The remaining arguments seem to be fine, i.e. sMyDoc, sTheirDoc and sMergedDoc.

I hope this explanation is understandable. I attach a repository ready to be merged so you don't have to create one and a couple of screenshots.

Thanks!

Attachments: Attachments.zipdocdiff.exemerge-doc_proposal_1.js

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking