[PATCH] hgk: don't break on repositories with obsolete changesets
Matt Mackall
mpm at selenic.com
Mon Sep 29 18:01:00 CDT 2014
On Sun, 2014-09-28 at 15:21 +0200, Andrew Shadura wrote:
> # HG changeset patch
> # User Andrew Shadura <andrew at shadura.me>
> # Date 1411910489 -7200
> # Sun Sep 28 15:21:29 2014 +0200
> # Node ID 2905b2bd3977b438488126bd38734bb64fad1063
> # Parent dd7041b135cfd4bc1f090a2ee98e30735d738fc5
> hgk: don't break on repositories with obsolete changesets
>
> Check the existence of a changeset before adding it to the list
> returned by debug-rev-list command.
Queued, but I had to add the following to get it to show the Mercurial
repo:
diff -r ecd31221ced7 hgext/hgk.py
--- a/hgext/hgk.py Sun Sep 28 15:21:29 2014 +0200
+++ b/hgext/hgk.py Mon Sep 29 17:58:24 2014 -0500
@@ -261,6 +261,8 @@
# walk the repository looking for commits that are in our
# reachability graph
for i, ctx in chlogwalk():
+ if i not in repo:
+ continue
n = repo.changelog.node(i)
mask = is_reachable(want_sha1, reachable, n)
if mask:
--
Mathematics is the supreme nostalgia of our time.
More information about the Mercurial-devel
mailing list