tests/test-revert-flags.t
author Patrick Mezard <patrick@mezard.eu>
Sat, 14 Apr 2012 11:27:11 +0200
changeset 16434 8b62a77d0895
parent 12110 58a8105242a5
child 16913 f2719b387380
permissions -rw-r--r--
graphlog: fix --follow FILE and relative paths The situation is complicated because filelog() revset uses a match object in relpath mode while follow() revset interprets the filename as a manifest entry.

  $ "$TESTDIR/hghave" execbit || exit 80

  $ 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