Fixed slip in `hglib.rb` introduced in commit e665031cade7
A bad refactoring.
(grafted from 3abc438b6c59c8ff8aacf863e808da945cb7740b)
--- a/rakelib/hglib.rb Thu Oct 05 10:53:55 2017 +0100
+++ b/rakelib/hglib.rb Tue Aug 22 10:11:36 2017 +0100
@@ -448,7 +448,7 @@
def push(remote = 'default', user: nil, pass: nil, rev: nil, bookmarks: [])
hg('push', remote, ssh: sshconf(remote), config: authconf(remote, user, pass), rev: rev, bookmark: bookmarks) do |status, stdout, stderr|
STDOUT.puts stdout
- unless status.exitstatus == 0 and status.exitstatus == 1
+ unless status.exitstatus == 0 or status.exitstatus == 1
STDERR.puts stderr
raise Exception.new("Failed to 'push' from #{remote} (exit code #{status.exitstatus})")
end