Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH 6/9] vcs_info quilt: fix unapplied detection on sub-directory
- X-seq: zsh-workers 33186
- From: Marc Finet <m.dreadlock@xxxxxxxxx>
- To: Frank Terbeck <ft@xxxxxxxxxxxxxxxxxxx>
- Subject: Re: [PATCH 6/9] vcs_info quilt: fix unapplied detection on sub-directory
- Date: Tue, 16 Sep 2014 22:25:37 +0200
- Cc: zsh-workers@xxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; bh=qHvqRlPRBEIIbFTx32TUCjX4e5znuOGv+us1vGWgsaY=; b=X0W10RaGYo05yoIkoQl6aPSQ0conmANgsHiBfKjBsZ5ykc0xFZ+/dk7s+NPqN30uQy G9UQFyb0rsnZ/JWl7GxaxbxNLZQR6OQekseon+iqwtP9qLJEeiA3n2CwLyMZs78gXN+k Jn1FFDySv2BmBSJMxdLUQRmsPx8n3nwBonOA83A7RWIRec30bJbFgWRE13LmydtSKORs GGrRE2uQDv/49OmiHK3rbpLtMr6uSTrqkxObPCfaQ+GHB5ywbB1AeHgwCmk7OZ8vamQb pzk7KjwRb7Cd6aXBjhYaYlLzLX+sD/SpqFZtryl8W9LzVteuv1gas7kfWLCGIrmVh63R Q3kg==
- In-reply-to: <87lhpm7ctw.fsf@ft.bewatermyfriend.org>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <1410557443-24178-1-git-send-email-m.dreadlock@gmail.com> <1410557443-24178-7-git-send-email-m.dreadlock@gmail.com> <87lhpm7ctw.fsf@ft.bewatermyfriend.org>
On Sun, 14 Sep 2014 11:47:55 +0200
Frank Terbeck <ft@xxxxxxxxxxxxxxxxxxx> wrote:
> Marc Finet wrote:
> > When being in a subdirectory of a "repo" being handled with quilt,
> > the `quilt unapplied` command returns all the patches because
> > QUILT_PATCHES is an absolute path (which exists and is a dir) and
> > quilt considers that .pc should in current directory.
> > Changing quilt might be overkill and it seems that QUILT_PATCHES
> > should just be a name, not an absolute path.
> [...]
> > - unapplied=( ${(f)"$(QUILT_PATCHES=$patches $quiltcommand
> > --quiltrc /dev/null unapplied 2> /dev/null)"} )
> > + unapplied=( ${(f)"$(QUILT_PATCHES=$(basename $patches)
> > $quiltcommand --quiltrc /dev/null unapplied 2> /dev/null)"} )
>
>
> You can't do it like this. With debian-packages for example, quilt
> patches live in ‘debian/patches’, which the ‘basename’ call would trim
> down to ‘patches’.
>
> If you do need special QUILT_PATCHES treatment, you can set a
> ‘quit-patches-dir’ style; if the treatment needs to be fancy, you can
> also set the style to a function, which opens up the door to whatever
> you like.
Hum, I can't remember on which quilt settings the problem occurred (I
should have explained it on the commit message more), but I
have seen the debian/patches on a few places. I need to re-test all the
places i have quilt to be sure of the intended behavior. Please drop
this patch as there is still a problem with debian/patches as with this
patch vcs_info reports twice the number of patches (they appear both in
applied and unapplied, i.e. the problem I tried to fix).
Marc.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author