Changeset f8151ea4ffc6…
Parent cf5e6ffac8b7…
by Benjamin Pollack <benjamin@fogcreek.com>
Changes to 2 files · Browse files at f8151ea4ffc6 Showing diff from parent cf5e6ffac8b7 Diff from another changeset...
@@ -34,6 +34,9 @@ to your remotes via "gitkiln add-remote"
filehistory <file> [<file2> [...]]
show the history for one or more files in Kiln
+ hg-sha <sha> [<sha> [...]]
+ show the equivalent Mercurial SHAs corresponding to the
+ given Git SHAs
history
go to the history of this repository in Kiln
logout
@@ -229,6 +232,17 @@ }
case "help":
showHelp()
+ case "hg-sha":
+ if ensureArgs(3, "you must provide at least one commit SHA to lookup") {
+ requireAuth(k)
+ for _, commit := range os.Args[2:len(os.Args)] {
+ if equivalent, err := k.MercurialEquivalent(repoPath, commit); err == nil {
+ fmt.Printf("%v: %v\n", commit, equivalent)
+ } else {
+ fmt.Printf("%v: <none found> (%v)\n", commit, err)
+ }
+ }
+ }
case "history":
k.BrowseHistory(repoPath)
case "logout":
|
Loading...