tests/test-mq-qsave.t
author Matt Harbison <matt_harbison@yahoo.com>
Thu, 21 Jun 2018 00:05:26 -0400
changeset 38414 235d0bc11e1d
parent 12324 b701610f6c56
child 49621 55c6ebd11cb9
permissions -rw-r--r--
fileset: use filectx.isbinary() to filter out binaries in eol() Since LFS stores the binary attribute in the pointer file, this means that the file doesn't need to be downloaded in order to be skipped. This function also catches an IOError if the data can't be loaded in the non-LFS case. I wonder if it's worth storing the unix/dos attributes in the pointer file as well, though I'd expect LFS files to be binary most of the time.

  $ echo "[extensions]" >> $HGRCPATH
  $ echo "mq=" >> $HGRCPATH

  $ hg init

  $ echo 'base' > base
  $ hg ci -Ambase
  adding base

  $ hg qnew -mmqbase mqbase

  $ hg qsave
  $ hg qrestore 2
  restoring status: hg patches saved state