How to tell Mercurial to automatically accept "their" version during a merge conflict of any files in a particular directory? -


first off, prefer not check in generated files @ manager insists. so, given constraints create mercurial "merge-patterns" take "their files" in directories named "generated" in working repo. have read hgrc documentation , related post , here think should like:

[merge-patterns] generated/** = internal:other #keep files 

and placed in root .hg/hgrc file. when run hg update merge conflicts get:

> hg update couldn't find merge tool internal:other #keep files specified generated/** merging generated/file.sv 

so modified "merge-patterns" this:

[merge-patterns] **/generated/** = internal:other #keep files 

and here get:

> hg update merging generated/file.sv 

so, no longer "couldn't find merge tool internal:other" warning still trying merge generated files.

any ideas on how work?

additional notes:

  1. we using mercurial version 1.7.5 having problems newer versions , subrepos.
  2. i working subrepos here structure of main repo looks like:

enter image description here

i believe problem comment! mercurial searching tool named

internal:other #keep files 

and that's unlikely exist :-) try moving comment line above:

[merge-patterns] # keep files generated/** = internal:other 

i haven't tested out, believe still need first pattern used — warning went away second try because pattern no longer matched inside subrepo. when start merge top-level, subrepos merged if hg merge executed inside subrepo.


Comments

Popular posts from this blog

delphi - How to convert bitmaps to video? -

jasper reports - Fixed header in Excel using JasperReports -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -