[issue3357] mq fails to qpush imported revision adding space to file name

Patrick Mézard bugs at mercurial.selenic.com
Thu Apr 5 07:35:53 CDT 2012


New submission from Patrick Mézard <patrick at mezard.eu>:

Test:

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

  $ hg init repo
  $ cd repo
  $ mkdir dir
  $ echo a > dir/a
  $ hg add dir/a
  $ hg ci -m adda
  $ mkdir "dir with space"
  $ hg mv dir/a "dir with space/a"
  $ echo b >> "dir with space/a"
  $ hg ci -m changea
  $ hg qimport -r .
  $ hg qpop
  popping 1.diff
  patch queue now empty
  $ hg qpush
  applying 1.diff
  unable to find 'dir' for patching
  1 out of 1 hunks FAILED -- saving rejects to file dir.rej
  patch failed, unable to continue (try -v)
  patch failed, rejects left in working dir
  errors during apply, please fix and refresh 1.diff
  [2]
  $ cat .hg/patches/1.diff
  # HG changeset patch
  # User test
  # Date 0 0
  # Node ID 17f753df681613919b560e5de8d05c0d1f532420
  # Parent  1d07f4da58205831c0231157d50cd4d5ac4fd955
  changea
  
  diff --git a/dir/a b/dir with space/a
  rename from dir/a
  rename to dir with space/a
  --- a/dir/a
  +++ b/dir with space/a
  @@ -1,1 +1,2 @@
   a
  +b

----------
messages: 19528
nosy: pmezard
priority: bug
status: unread
title: mq fails to qpush imported revision adding space to file name
topic: mq

____________________________________________________
Mercurial issue tracker <bugs at mercurial.selenic.com>
<http://mercurial.selenic.com/bts/issue3357>
____________________________________________________


More information about the Mercurial-devel mailing list