Commit 78e7daf9 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 3acce34a
// Copyright (C) 2017-2019 Nexedi SA and Contributors.
// Copyright (C) 2017-2020 Nexedi SA and Contributors.
// Kirill Smelkov <kirr@nexedi.com>
//
// This program is free software: you can Use, Study, Modify and Redistribute
......@@ -82,6 +82,15 @@ func (xid Xid) XFmtString(b xfmt.Buffer) xfmt.Buffer {
}
*/
// String formats events into human-readable form.
func (e *EventError) String() string {
return "error: " + e.Err.Error()
}
func (e *EventCommit) String() string {
return fmt.Sprintf("commit @%s δ: %s", e.Tid, e.Changev)
}
// parseHex64 decodes 16-character-wide hex-encoded string into uint64.
func parseHex64(subj, s string) (uint64, error) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment