[prev in list] [next in list] [prev in thread] [next in thread]
List: mercurial-devel
Subject: D10287: shelve: simplify
From: "joerg.sonnenberger (Joerg Sonnenberger)" <phabricator () mercurial-scm ! org>
Date: 2021-03-29 0:06:49
Message-ID: differential-rev-PHID-DREV-3dr26jb54gxon2gip564-req () mercurial-scm ! org
[Download RAW message or body]
joerg.sonnenberger created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REPOSITORY
rHG Mercurial
BRANCH
default
REVISION DETAIL
https://phab.mercurial-scm.org/D10287
AFFECTED FILES
mercurial/shelve.py
CHANGE DETAILS
diff --git a/mercurial/shelve.py b/mercurial/shelve.py
--- a/mercurial/shelve.py
+++ b/mercurial/shelve.py
@@ -534,7 +534,7 @@
parent = parents[0]
origbranch = wctx.branch()
- if parent.node() != nullid:
+ if parent.rev() != nullrev:
desc = b"changes to: %s" % parent.description().split(b'\n', 1)[0]
else:
desc = b'(changes in empty repository)'
To: joerg.sonnenberger, #hg-reviewers
Cc: mercurial-patches, mercurial-devel
_______________________________________________
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic