Dont mess with global user identity in __scm_setup_bzr
authorPanu Matilainen <pmatilai@redhat.com>
Mon, 28 Jan 2013 20:34:11 +0000 (22:34 +0200)
committerPanu Matilainen <pmatilai@redhat.com>
Tue, 29 Jan 2013 06:15:25 +0000 (08:15 +0200)
- Bzr defaults to global value on "bzr whoami", so we would mess
  up user identity on "%autosetup -S bzr". Oops. Move identity setting
  after repo initialization and set the identity per-branch, not global.
  The notion of "per-branch identity" seems odd, but then bzr is...
  I guess this would be bzr-speak for "per-directory identity"
(cherry picked from commit 58f41cb4e1721d410017732a55613056b6acb24c)

macros.in

index 319be283a97de98c2f11aecf9aec207d9c6bf49c..cd7bc31991c0ddbab651dd1c5f7716b626b7b940 100644 (file)
--- a/macros.in
+++ b/macros.in
@@ -1074,8 +1074,8 @@ done \
 
 # Bzr
 %__scm_setup_bzr(q)\
-%{__bzr} whoami "%{__scm_author}"\
 %{__bzr} init %{-q}\
+%{__bzr} whoami --branch "%{__scm_author}"\
 %{__bzr} add .\
 %{__bzr} commit %{-q} -m "%{name}-%{version} base"