diff --git a/contrib/automation/hgautomation/linux.py b/contrib/automation/hgautomation/linux.py
index e0cf09bc35ef6d7e8554e5be98441e995c856759_Y29udHJpYi9hdXRvbWF0aW9uL2hnYXV0b21hdGlvbi9saW51eC5weQ==..9e0f1c80cddb6f0470242c02f222cd2d5734165d_Y29udHJpYi9hdXRvbWF0aW9uL2hnYXV0b21hdGlvbi9saW51eC5weQ== 100644
--- a/contrib/automation/hgautomation/linux.py
+++ b/contrib/automation/hgautomation/linux.py
@@ -485,7 +485,9 @@
             'python2.7', str(hg_bin),
             '--config', 'ui.ssh=ssh -F %s' % ssh_config,
             '--config', 'ui.remotecmd=/hgdev/venv-bootstrap/bin/hg',
-            'push', '-f', '-r', full_revision,
+            # Also ensure .hgtags changes are present so auto version
+            # calculation works.
+            'push', '-f', '-r', full_revision, '-r', 'file(.hgtags)',
             'ssh://%s//hgwork/src' % public_ip,
         ]
 
diff --git a/contrib/automation/hgautomation/windows.py b/contrib/automation/hgautomation/windows.py
index e0cf09bc35ef6d7e8554e5be98441e995c856759_Y29udHJpYi9hdXRvbWF0aW9uL2hnYXV0b21hdGlvbi93aW5kb3dzLnB5..9e0f1c80cddb6f0470242c02f222cd2d5734165d_Y29udHJpYi9hdXRvbWF0aW9uL2hnYXV0b21hdGlvbi93aW5kb3dzLnB5 100644
--- a/contrib/automation/hgautomation/windows.py
+++ b/contrib/automation/hgautomation/windows.py
@@ -176,7 +176,9 @@
             'python2.7', hg_bin,
             '--config', 'ui.ssh=ssh -F %s' % ssh_config,
             '--config', 'ui.remotecmd=c:/hgdev/venv-bootstrap/Scripts/hg.exe',
-            'push', '-f', '-r', full_revision,
+            # Also ensure .hgtags changes are present so auto version
+            # calculation works.
+            'push', '-f', '-r', full_revision, '-r', 'file(.hgtags)',
             'ssh://%s/c:/hgdev/src' % public_ip,
         ]