From 6494b3c3ce90ec32de6770cbeb66e622e896ac7d Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Sun, 14 Nov 2010 01:21:51 -0500 Subject: [PATCH] Handle resets with arguments. --- rcs-fast-import | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/rcs-fast-import b/rcs-fast-import index 7afc631..e64555a 100755 --- a/rcs-fast-import +++ b/rcs-fast-import @@ -514,8 +514,7 @@ class Repository: elif isinstance(event, Reset) and event.committish is not None: for commit in self.commits(): if commit.mark == event.committish: - # FIXME: Not yet used for anything - commit.resetlist.append(tag) + commit.resetlist.append(event) break else: raise FatalException("reset points at nonexistent %s" @@ -696,6 +695,8 @@ class Generic: loud_remove(path) if commit.is_tip(): self.maketag(commit.branch, str(rev.branch()), path) + for reset in commit.resetlist: + self.maketag(reset.ref, str(rev), path) def modify(self, event, path, mode, copyfile): "Perform file checkins and modifications," sanecheck(event, path, mode, copyfile) -- 2.43.0