tests/test-revert-flags.t
author Robert Stanca <robert.stanca7@gmail.com>
Sat, 16 Apr 2016 05:30:32 +0300
changeset 28943 417380aa5bbe
parent 22046 7a9cbb315d84
permissions -rw-r--r--
py3: use absolute_import in mockblackbox.py

#require execbit

  $ hg init repo
  $ cd repo
  $ echo foo > foo
  $ chmod 644 foo
  $ hg ci -qAm '644'

  $ chmod 755 foo
  $ hg ci -qAm '755'

reverting to rev 0

  $ hg revert -a -r 0
  reverting foo
  $ hg st
  M foo
  $ hg diff --git
  diff --git a/foo b/foo
  old mode 100755
  new mode 100644

  $ cd ..