From: "Karl Hasselström" <kha@treskal.com>
To: Yann Dirson <ydirson@altern.org>
Cc: Catalin Marinas <catalin.marinas@gmail.com>,
GIT list <git@vger.kernel.org>
Subject: Re: stg 0.14.3 breakage on push after moving hunk
Date: Thu, 25 Sep 2008 09:23:22 +0200 [thread overview]
Message-ID: <20080925072322.GA27632@diana.vm.bytemark.co.uk> (raw)
In-Reply-To: <20080924232654.GY4985@nan92-1-81-57-214-146.fbx.proxad.net>
On 2008-09-25 01:26:54 +0200, Yann Dirson wrote:
> Just saw the following problem - ever saw that ?
>
> $ stg push
> Checking for changes in the working directory ... done
> Pushing patch "factorize" ... Traceback (most recent call last):
> File "/usr/bin/stg", line 43, in <module>
> main()
> File "/var/lib/python-support/python2.5/stgit/main.py", line 281, in main
> command.func(parser, options, args)
> File "/var/lib/python-support/python2.5/stgit/commands/push.py", line 102, in func
> push_patches(crt_series, patches, options.merged)
> File "/var/lib/python-support/python2.5/stgit/commands/common.py", line 202, in push_patches
> modified = crt_series.push_patch(p)
> File "/var/lib/python-support/python2.5/stgit/stack.py", line 1112, in push_patch
> git.merge(bottom, head, top, recursive = True)
> File "/var/lib/python-support/python2.5/stgit/git.py", line 790, in merge
> stages['2'][0], stages['3'][0]) != 0:
> File "/var/lib/python-support/python2.5/stgit/gitmergeonefile.py", line 268, in merge
> % path)
> TypeError: not all arguments converted during string formatting
No, but try this ...
diff --git a/stgit/gitmergeonefile.py b/stgit/gitmergeonefile.py
index c1af2f8..55b62db 100644
--- a/stgit/gitmergeonefile.py
+++ b/stgit/gitmergeonefile.py
@@ -264,7 +264,7 @@ def merge(orig_hash, file1_hash, file2_hash,
__conflict(path)
return 1
if file1_mode != file2_mode:
- out.error('File "s" added in both, permissions conflict'
+ out.error('File "%s" added in both, permissions conflict'
% path)
__conflict(path)
return 1
--
Karl Hasselström, kha@treskal.com
www.treskal.com/kalle
next prev parent reply other threads:[~2008-09-25 7:03 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-24 23:26 stg 0.14.3 breakage on push after moving hunk Yann Dirson
2008-09-25 7:23 ` Karl Hasselström [this message]
2008-09-25 7:57 ` Yann Dirson
2008-09-25 8:37 ` Karl Hasselström
2008-09-25 18:54 ` Yann Dirson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080925072322.GA27632@diana.vm.bytemark.co.uk \
--to=kha@treskal.com \
--cc=catalin.marinas@gmail.com \
--cc=git@vger.kernel.org \
--cc=ydirson@altern.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox