Commits

Yuya Nishihara committed 5105ea2

bookmark: use canonical command name, "bookmarks"

If ui.strict is True, unknown command error occurs.

Thanks to Katsunori FUJIWARA <flying.foozy@gmail.com>.

Comments (0)

Files changed (1)

tortoisehg/hgqt/bookmark.py

         def finished():
             self.set_status(_("Bookmark '%s' has been added") % bookmark, True)
 
-        cmdline = ['bookmark', '--repository', self.repo.root,
+        cmdline = ['bookmarks', '--repository', self.repo.root,
                    '--rev', str(self.rev), bookmarklocal]
         self.cmd.run(cmdline)
         self.finishfunc = finished
         def finished():
             self.set_status(_("Bookmark '%s' has been moved") % bookmark, True)
 
-        cmdline = ['bookmark', '--repository', self.repo.root,
+        cmdline = ['bookmarks', '--repository', self.repo.root,
                    '--rev', str(self.rev), '--force', bookmarklocal]
         self.cmd.run(cmdline)
         self.finishfunc = finished
         def finished():
             self.set_status(_("Bookmark '%s' has been removed") % bookmark, True)
 
-        cmdline = ['bookmark', '--repository', self.repo.root,
+        cmdline = ['bookmarks', '--repository', self.repo.root,
                    '--delete', bookmarklocal]
         self.cmd.run(cmdline)
         self.finishfunc = finished
             self.set_status(_("Bookmark '%s' has been renamed to '%s'") %
                             (name, newname), True)
 
-        cmdline = ['bookmark', '--repository', self.repo.root,
+        cmdline = ['bookmarks', '--repository', self.repo.root,
                    '--rename', namelocal, newnamelocal]
         self.cmd.run(cmdline)
         self.finishfunc = finished