Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
mercurial-devel
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mercurial
mercurial-devel
Commits
dc360709
Commit
dc360709
authored
13 years ago
by
Matt Mackall
Browse files
Options
Downloads
Plain Diff
merge with stable
parents
8e115063
a9b0f562
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.hgsigs
+1
-0
1 addition, 0 deletions
.hgsigs
.hgtags
+1
-0
1 addition, 0 deletions
.hgtags
hgext/record.py
+11
-8
11 additions, 8 deletions
hgext/record.py
with
13 additions
and
8 deletions
.hgsigs
+
1
−
0
View file @
dc360709
...
@@ -42,3 +42,4 @@
...
@@ -42,3 +42,4 @@
de9eb6b1da4fc522b1cab16d86ca166204c24f25 0 iD8DBQBODhfhywK+sNU5EO8RAr2+AJ4ugbAj8ae8/K0bYZzx3sascIAg1QCeK3b+zbbVVqd3b7CDpwFnaX8kTd4=
de9eb6b1da4fc522b1cab16d86ca166204c24f25 0 iD8DBQBODhfhywK+sNU5EO8RAr2+AJ4ugbAj8ae8/K0bYZzx3sascIAg1QCeK3b+zbbVVqd3b7CDpwFnaX8kTd4=
4a43e23b8c55b4566b8200bf69fe2158485a2634 0 iD8DBQBONzIMywK+sNU5EO8RAj5SAJ0aPS3+JHnyI6bHB2Fl0LImbDmagwCdGbDLp1S7TFobxXudOH49bX45Iik=
4a43e23b8c55b4566b8200bf69fe2158485a2634 0 iD8DBQBONzIMywK+sNU5EO8RAj5SAJ0aPS3+JHnyI6bHB2Fl0LImbDmagwCdGbDLp1S7TFobxXudOH49bX45Iik=
d629f1e89021103f1753addcef6b310e4435b184 0 iD8DBQBOWAsBywK+sNU5EO8RAht4AJwJl9oNFopuGkj5m8aKuf7bqPkoAQCeNrEm7UhFsZKYT5iUOjnMV7s2LaM=
d629f1e89021103f1753addcef6b310e4435b184 0 iD8DBQBOWAsBywK+sNU5EO8RAht4AJwJl9oNFopuGkj5m8aKuf7bqPkoAQCeNrEm7UhFsZKYT5iUOjnMV7s2LaM=
351a9292e430e35766c552066ed3e87c557b803b 0 iD8DBQBOh3zUywK+sNU5EO8RApFMAKCD3Y/u3avDFndznwqfG5UeTHMlvACfUivPIVQZyDZnhZMq0UhC6zhCEQg=
This diff is collapsed.
Click to expand it.
.hgtags
+
1
−
0
View file @
dc360709
...
@@ -54,3 +54,4 @@
...
@@ -54,3 +54,4 @@
de9eb6b1da4fc522b1cab16d86ca166204c24f25 1.9
de9eb6b1da4fc522b1cab16d86ca166204c24f25 1.9
4a43e23b8c55b4566b8200bf69fe2158485a2634 1.9.1
4a43e23b8c55b4566b8200bf69fe2158485a2634 1.9.1
d629f1e89021103f1753addcef6b310e4435b184 1.9.2
d629f1e89021103f1753addcef6b310e4435b184 1.9.2
351a9292e430e35766c552066ed3e87c557b803b 1.9.3
This diff is collapsed.
Click to expand it.
hgext/record.py
+
11
−
8
View file @
dc360709
...
@@ -386,7 +386,10 @@
...
@@ -386,7 +386,10 @@
dorecord
(
ui
,
repo
,
commands
.
commit
,
'
commit
'
,
False
,
*
pats
,
**
opts
)
dorecord
(
ui
,
repo
,
commands
.
commit
,
'
commit
'
,
False
,
*
pats
,
**
opts
)
def
qrefresh
(
ui
,
repo
,
*
pats
,
**
opts
):
def
qrefresh
(
origfn
,
ui
,
repo
,
*
pats
,
**
opts
):
if
not
opts
[
'
interactive
'
]:
return
origfn
(
ui
,
repo
,
*
pats
,
**
opts
)
mq
=
extensions
.
find
(
'
mq
'
)
mq
=
extensions
.
find
(
'
mq
'
)
def
committomq
(
ui
,
repo
,
*
pats
,
**
opts
):
def
committomq
(
ui
,
repo
,
*
pats
,
**
opts
):
...
@@ -419,6 +422,11 @@
...
@@ -419,6 +422,11 @@
dorecord
(
ui
,
repo
,
committomq
,
'
qnew
'
,
False
,
*
pats
,
**
opts
)
dorecord
(
ui
,
repo
,
committomq
,
'
qnew
'
,
False
,
*
pats
,
**
opts
)
def
qnew
(
origfn
,
ui
,
repo
,
patch
,
*
args
,
**
opts
):
if
opts
[
'
interactive
'
]:
return
qrecord
(
ui
,
repo
,
patch
,
*
args
,
**
opts
)
return
origfn
(
ui
,
repo
,
patch
,
*
args
,
**
opts
)
def
dorecord
(
ui
,
repo
,
commitfunc
,
cmdsuggest
,
backupall
,
*
pats
,
**
opts
):
def
dorecord
(
ui
,
repo
,
commitfunc
,
cmdsuggest
,
backupall
,
*
pats
,
**
opts
):
if
not
ui
.
interactive
():
if
not
ui
.
interactive
():
raise
util
.
Abort
(
_
(
'
running non-interactively, use %s instead
'
)
%
raise
util
.
Abort
(
_
(
'
running non-interactively, use %s instead
'
)
%
...
@@ -584,8 +592,8 @@
...
@@ -584,8 +592,8 @@
mq
.
cmdtable
[
'
^qnew
'
][
1
][:]
+
diffopts
,
mq
.
cmdtable
[
'
^qnew
'
][
1
][:]
+
diffopts
,
_
(
'
hg qrecord [OPTION]... PATCH [FILE]...
'
))
_
(
'
hg qrecord [OPTION]... PATCH [FILE]...
'
))
_wrapcmd
(
'
qnew
'
,
mq
.
cmdtable
,
q
record
,
_
(
"
interactively record a new patch
"
))
_wrapcmd
(
'
qnew
'
,
mq
.
cmdtable
,
q
new
,
_
(
"
interactively record a new patch
"
))
_wrapcmd
(
'
qrefresh
'
,
mq
.
cmdtable
,
qrefresh
,
_wrapcmd
(
'
qrefresh
'
,
mq
.
cmdtable
,
qrefresh
,
_
(
"
interactively select changes to refresh
"
))
_
(
"
interactively select changes to refresh
"
))
def
_wrapcmd
(
cmd
,
table
,
wrapfn
,
msg
):
def
_wrapcmd
(
cmd
,
table
,
wrapfn
,
msg
):
...
@@ -588,11 +596,6 @@
...
@@ -588,11 +596,6 @@
_wrapcmd
(
'
qrefresh
'
,
mq
.
cmdtable
,
qrefresh
,
_wrapcmd
(
'
qrefresh
'
,
mq
.
cmdtable
,
qrefresh
,
_
(
"
interactively select changes to refresh
"
))
_
(
"
interactively select changes to refresh
"
))
def
_wrapcmd
(
cmd
,
table
,
wrapfn
,
msg
):
def
_wrapcmd
(
cmd
,
table
,
wrapfn
,
msg
):
'''
wrap the command
'''
entry
=
extensions
.
wrapcommand
(
table
,
cmd
,
wrapfn
)
def
wrapper
(
orig
,
*
args
,
**
kwargs
):
if
kwargs
[
'
interactive
'
]:
return
wrapfn
(
*
args
,
**
kwargs
)
return
orig
(
*
args
,
**
kwargs
)
entry
=
extensions
.
wrapcommand
(
table
,
cmd
,
wrapper
)
entry
[
1
].
append
((
'
i
'
,
'
interactive
'
,
None
,
msg
))
entry
[
1
].
append
((
'
i
'
,
'
interactive
'
,
None
,
msg
))
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment