mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 09:17:30 +03:00
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:
parent
099650d781
commit
a0a2518bf6
@ -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.
|
||||
|
@ -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.
|
@ -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.
|
Loading…
Reference in New Issue
Block a user