Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
882e82db
Commit
882e82db
authored
Apr 03, 2008
by
Stefan Monnier
Browse files
(vc-bzr-previous-revision, vc-bzr-next-revision): New funs.
parent
0c1b4ae2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
0 deletions
+14
-0
lisp/ChangeLog
lisp/ChangeLog
+4
-0
lisp/vc-bzr.el
lisp/vc-bzr.el
+10
-0
No files found.
lisp/ChangeLog
View file @
882e82db
2008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
* vc-bzr.el (vc-bzr-previous-revision, vc-bzr-next-revision): New funs.
2008-04-03 Chong Yidong <cyd@stupidchicken.com>
* shell.el (shell-dynamic-complete-filename): New fun.
...
...
lisp/vc-bzr.el
View file @
882e82db
...
...
@@ -357,6 +357,16 @@ If any error occurred in running `bzr status', then return nil."
"Always return nil, as Bzr cannot register explicit versions."
nil
)
(
defun
vc-bzr-previous-revision
(
file
rev
)
(
if
(
string-match
"\\`[0-9]+\\'"
rev
)
(
number-to-string
(
1-
(
string-to-number
rev
)))
(
concat
"before:"
rev
)))
(
defun
vc-bzr-next-revision
(
file
rev
)
(
if
(
string-match
"\\`[0-9]+\\'"
rev
)
(
number-to-string
(
1+
(
string-to-number
rev
)))
(
error
"Don't know how to compute the next revision of %s"
rev
)))
(
defun
vc-bzr-register
(
files
&optional
rev
comment
)
"Register FILE under bzr.
Signal an error unless REV is nil.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment