Add regression test for issue #2064.

* subversion/tests/clients/cmdline/merge_tests.py (merge_keyword_expansions): 
  New test.
  (test_list): Add merge_keyword_expansions.
Index: subversion/tests/clients/cmdline/merge_tests.py
===================================================================
--- subversion/tests/clients/cmdline/merge_tests.py	(revision 11911)
+++ subversion/tests/clients/cmdline/merge_tests.py	(arbetskopia)
@@ -2073,7 +2073,64 @@
                                         None, None, None, None, None,
                                         wc_dir)
 
+#-----------------------------------------------------------------------
+# Regression test for issue #2064
 
+def merge_keyword_expansions(sbox):
+  "merge changes to keyword expansion property"
+
+  sbox.build()
+
+  wcpath = sbox.wc_dir
+  tpath = os.path.join(wcpath, "t")
+  bpath = os.path.join(wcpath, "b")
+  t_fpath = os.path.join(tpath, 'f')
+  t_gpath = os.path.join(tpath, 'g')
+  b_fpath = os.path.join(bpath, 'f')
+  b_gpath = os.path.join(bpath, 'g')
+
+  os.mkdir(tpath)
+  svntest.main.file_append(t_fpath, "$Revision$")
+  svntest.main.run_svn(None, "add", tpath)
+  # Commit r2.
+  svntest.actions.run_and_verify_svn(None, None, [],
+                                     "ci", "-m", "r2", wcpath)
+
+  # Copy t to b.
+  svntest.main.run_svn(None, "cp", tpath, bpath)
+  # Commit r3
+  svntest.actions.run_and_verify_svn(None, None, [],
+                                     "ci", "-m", "r3", wcpath)
+
+  # Add another file to t.
+  svntest.main.file_append(t_gpath, "$Revision$")
+  svntest.actions.run_and_verify_svn(None, None, [],
+                                     'add', t_gpath)
+  # Ask for keyword expansion in both files.
+  svntest.actions.run_and_verify_svn(None, None, [],
+                                     'propset', 'svn:keywords', 'Revision',
+                                     t_fpath, t_gpath)
+  # Commit r4
+  svntest.actions.run_and_verify_svn(None, None, [],
+                                     'ci', '-m', 'r4', wcpath)
+
+  # Update the wc before the merge.
+  svntest.actions.run_and_verify_svn(None, None, [],
+                                     'update', wcpath)
+
+  # Do the merge.
+  svntest.actions.run_and_verify_svn(None, None, [],
+                                     'merge', '-r2:HEAD',
+                                     svntest.main.current_repo_url + "/t",
+                                     bpath)
+
+  # Check the file contents.
+  fp = open(b_fpath, "r")
+  content = fp.read()
+  fp.close()
+  if content != "$Revision: 3 $":
+    raise svntest.main.Failure
+
 ########################################################################
 # Run the tests
 
@@ -2097,6 +2154,7 @@
               dry_run_adds_file_with_prop,
               merge_binary_with_common_ancestry,
               merge_funny_chars_on_path,
+              XFail(merge_keyword_expansions),
               # property_merges_galore,  # Would be nice to have this.
               # tree_merges_galore,      # Would be nice to have this.
               # various_merges_galore,   # Would be nice to have this.
