hgsubversion: skip empty commits when pushing

Summary:
We're down to just one use of hgsubversion. In that use it's convienent
to skip empty commits when pushing. Let's add logic to bypass empty commits.

Differential Revision: D17452527

fbshipit-source-id: 5ef76df7d0a44f2d43f4ea0d8678e4174c0286ee
This commit is contained in:
Durham Goode 2019-09-19 15:42:57 -07:00 committed by Facebook Github Bot
parent 099650d781
commit a0a2518bf6
3 changed files with 3 additions and 8 deletions

View File

@ -267,6 +267,9 @@ def push(repo, dest, force, revs):
# results in nonzero exit status, see hg's commands.py
return 0
if not current_ctx.files():
continue
if ui.configbool("hgsubversion", "skippostpushpulls"):
# We use the revmap for the first commit.
# After that, we use what we received from svn.

View File

@ -1,4 +0,0 @@
note: rebase of 3:c975518ecebd created no changes to commit
Could not push revision c975518ecebd because it had no changes in svn.
note: rebase of 3:c975518ecebd created no changes to commit
Could not push revision c975518ecebd because it had no changes in svn.

View File

@ -1,4 +0,0 @@
note: rebase of 3:c975518ecebd created no changes to commit
Could not push revision c975518ecebd because it had no changes in svn.
note: rebase of 3:c975518ecebd created no changes to commit
Could not push revision c975518ecebd because it had no changes in svn.