Rev 3046: Give a better message when failing to pull because the source needs to be reconciled (#164443) in file:///home/pqm/archives/thelove/bzr/%2Btrunk/

Canonical.com Patch Queue Manager pqm at pqm.ubuntu.com
Thu Nov 29 00:22:55 GMT 2007


At file:///home/pqm/archives/thelove/bzr/%2Btrunk/

------------------------------------------------------------
revno: 3046
revision-id:pqm at pqm.ubuntu.com-20071129002251-zx5sh1lk79tfebhf
parent: pqm at pqm.ubuntu.com-20071128235613-x2mlgis46pvcfphp
parent: mbp at sourcefrog.net-20071128235254-1xr3l5w4dupsi1jt
committer: Canonical.com Patch Queue Manager <pqm at pqm.ubuntu.com>
branch nick: +trunk
timestamp: Thu 2007-11-29 00:22:51 +0000
message:
  Give a better message when failing to pull because the source needs to be reconciled (#164443)
modified:
  NEWS                           NEWS-20050323055033-4e00b5db738777ff
  bzrlib/knit.py                 knit.py-20051212171256-f056ac8f0fbe1bd9
    ------------------------------------------------------------
    revno: 3040.2.3
    revision-id:mbp at sourcefrog.net-20071128235254-1xr3l5w4dupsi1jt
    parent: mbp at sourcefrog.net-20071128064650-qlz9uqlcjp2161yw
    committer: Martin Pool <mbp at sourcefrog.net>
    branch nick: 164443-hpss-branch
    timestamp: Thu 2007-11-29 10:52:54 +1100
    message:
      Update NEWS
    modified:
      NEWS                           NEWS-20050323055033-4e00b5db738777ff
    ------------------------------------------------------------
    revno: 3040.2.2
    revision-id:mbp at sourcefrog.net-20071128064650-qlz9uqlcjp2161yw
    parent: mbp at sourcefrog.net-20071128034812-2hskwzcbpq1sv5al
    committer: Martin Pool <mbp at sourcefrog.net>
    branch nick: 164443-hpss-branch
    timestamp: Wed 2007-11-28 17:46:50 +1100
    message:
      Clearer reconcile recommendation message (thanks Matt Nordhoff)
    modified:
      bzrlib/knit.py                 knit.py-20051212171256-f056ac8f0fbe1bd9
    ------------------------------------------------------------
    revno: 3040.2.1
    revision-id:mbp at sourcefrog.net-20071128034812-2hskwzcbpq1sv5al
    parent: pqm at pqm.ubuntu.com-20071128013549-w54seazrf4oeywb9
    committer: Martin Pool <mbp at sourcefrog.net>
    branch nick: 164443-hpss-branch
    timestamp: Wed 2007-11-28 14:48:12 +1100
    message:
      Give a better message when failing to pull because the source needs to be reconciled
    modified:
      bzrlib/knit.py                 knit.py-20051212171256-f056ac8f0fbe1bd9
=== modified file 'NEWS'
--- a/NEWS	2007-11-28 23:56:13 +0000
+++ b/NEWS	2007-11-29 00:22:51 +0000
@@ -68,13 +68,6 @@
 
   BUG FIXES:
 
-   * Fix possible error in insert_data_stream when copying between 
-     pack repositories over bzr+ssh or bzr+http.  
-     KnitVersionedFile.get_data_stream now makes sure that requested
-     compression parents are sent before any delta hunks that depend 
-     on them.
-     (Martin Pool, #164637)
-
    * A progress bar has been added for knitpack -> knitpack fetching.
      (Robert Collins, #157789, #159147)
 
@@ -109,6 +102,13 @@
    * Fix multiple connections during checkout --lightweight.
      (Vincent Ladeuil, #159150)
 
+   * Fix possible error in insert_data_stream when copying between 
+     pack repositories over bzr+ssh or bzr+http.  
+     KnitVersionedFile.get_data_stream now makes sure that requested
+     compression parents are sent before any delta hunks that depend 
+     on them.
+     (Martin Pool, #164637)
+
    * Fix typo in limiting offsets coalescing for http, leading to
      whole files being downloaded instead of parts.
      (Vincent Ladeuil, #165061)
@@ -116,6 +116,10 @@
    * FTP server errors don't error in the error handling code.
      (Robert Collins, #161240)
 
+   * Give a clearer message when a pull fails because the source needs
+     to be reconciled.
+     (Martin Pool, #164443)
+
    * It is clearer when a plugin cannot be loaded because of its name, and a
      suggestion for an acceptable name is given. (Daniel Watkins, #103023)
 

=== modified file 'bzrlib/knit.py'
--- a/bzrlib/knit.py	2007-11-28 05:35:06 +0000
+++ b/bzrlib/knit.py	2007-11-29 00:22:51 +0000
@@ -770,11 +770,19 @@
                     # line-delta is no use unless we have its parent.
                     # Fetching from a broken repository with this problem
                     # shouldn't break the target repository.
+                    #
+                    # See https://bugs.launchpad.net/bzr/+bug/164443
                     if not self._index.has_version(parents[0]):
                         raise KnitCorrupt(
                             self.filename,
-                            'line-delta from stream references '
-                            'missing parent %s' % parents[0])
+                            'line-delta from stream '
+                            'for version %s '
+                            'references '
+                            'missing parent %s\n'
+                            'Try running "bzr check" '
+                            'on the source repository, and "bzr reconcile" '
+                            'if necessary.' %
+                            (version_id, parents[0]))
                 self._add_raw_records(
                     [(version_id, options, parents, length)],
                     reader_callable(length))




More information about the bazaar-commits mailing list