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
aee8455ee8ec
Commit
aee8455ee8ec
authored
15 years ago
by
Martijn Pieters
Browse files
Options
Downloads
Patches
Plain Diff
Fix typeerror when specifying both --rebase and --pull
parent
c8c231da59c3
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
hgext/rebase.py
+1
-1
1 addition, 1 deletion
hgext/rebase.py
tests/test-rebase-pull
+4
-0
4 additions, 0 deletions
tests/test-rebase-pull
tests/test-rebase-pull.out
+5
-0
5 additions, 0 deletions
tests/test-rebase-pull.out
with
10 additions
and
1 deletion
hgext/rebase.py
+
1
−
1
View file @
aee8455e
...
...
@@ -400,7 +400,7 @@
'
Call rebase after pull if the latter has been invoked with --rebase
'
if
opts
.
get
(
'
rebase
'
):
if
opts
.
get
(
'
update
'
):
del
opts
.
get
[
'
update
'
]
del
opts
[
'
update
'
]
ui
.
debug
(
_
(
'
--update and --rebase are not compatible, ignoring
'
'
the update flag
\n
'
))
...
...
This diff is collapsed.
Click to expand it.
tests/test-rebase-pull
+
4
−
0
View file @
aee8455e
...
...
@@ -53,6 +53,10 @@
hg glog
--template
'{rev}\n'
-l
1
echo
echo
"% pull --rebase --update should ignore --update"
hg pull
--rebase
--update
2>&1 |
sed
's/\(pulling from \).*/\1/'
echo
echo
"% pull --rebase doesn't update if nothing has been pulled"
hg up 1
hg pull
--rebase
2>&1 |
sed
's/\(pulling from \).*/\1/'
...
...
This diff is collapsed.
Click to expand it.
tests/test-rebase-pull.out
+
5
−
0
View file @
aee8455e
...
...
@@ -44,6 +44,11 @@
@ 2
|
% pull --rebase --update should ignore --update
pulling from
searching for changes
no changes found
% pull --rebase doesn't update if nothing has been pulled
0 files updated, 0 files merged, 1 files removed, 0 files unresolved
pulling from
...
...
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