Mercurial HG 拉特定 "no changes" 但文件不同
Mercurial HG pull specific "no changes" yet files different
我的本地文件和 mercurial 修订处于不同的阶段,但是 hg pull 和 hg update default returns 没有更改消息。
在 bitbucket 上,我试图拉取到本地机器的回购和修订是 https://bitbucket.org/sayth/pyxml/src/c63b5ce2119ae64331ee2551fc19083315be0571/xrace.py
[sayth@localhost pyXML]$ hg pull && hg update default
pulling from https://bitbucket.org/sayth/pyxml
searching for changes
no changes found
0 files updated, 0 files merged, 0 files removed, 0 files unresolved
在最新版本的 bitbucket 中,您可以仅在导入中看到它们是不同的。
Bitbucket
# from lxml import etree
from lxml import objectify
import argparse
import os
本地机器
from pyquery import PyQuery as pq
# import pandas as pd
# import psycopg2
import argparse
import os
# from datetime import datetime
即使尝试按修订号拉动,但它不会更新。
[sayth@localhost pyXML]$ hg pull -r c63b5ce
pulling from https://bitbucket.org/sayth/pyxml
no changes found
您的克隆是远程存储库的完整副本,其中包含所有修订。
当您 拉取 时,您正在检查远程仓库是否有任何新修订并将它们复制到您的本地克隆,但它不会更改您当前正在编辑的文件。
更新 更改您的工作副本,即您当前正在编辑的文件到您选择的任何版本。
如果你只是 hg update
而没有指定修订版,它将更新到它认为是 repo 的当前提示的任何内容。
如果你这样做 hg update -r c63b5ce2119a
它会将你的工作副本更新到指定的修订版,这将更改你当前正在编辑的文件。
我的本地文件和 mercurial 修订处于不同的阶段,但是 hg pull 和 hg update default returns 没有更改消息。
在 bitbucket 上,我试图拉取到本地机器的回购和修订是 https://bitbucket.org/sayth/pyxml/src/c63b5ce2119ae64331ee2551fc19083315be0571/xrace.py
[sayth@localhost pyXML]$ hg pull && hg update default
pulling from https://bitbucket.org/sayth/pyxml
searching for changes
no changes found
0 files updated, 0 files merged, 0 files removed, 0 files unresolved
在最新版本的 bitbucket 中,您可以仅在导入中看到它们是不同的。
Bitbucket
# from lxml import etree
from lxml import objectify
import argparse
import os
本地机器
from pyquery import PyQuery as pq
# import pandas as pd
# import psycopg2
import argparse
import os
# from datetime import datetime
即使尝试按修订号拉动,但它不会更新。
[sayth@localhost pyXML]$ hg pull -r c63b5ce
pulling from https://bitbucket.org/sayth/pyxml
no changes found
您的克隆是远程存储库的完整副本,其中包含所有修订。
当您 拉取 时,您正在检查远程仓库是否有任何新修订并将它们复制到您的本地克隆,但它不会更改您当前正在编辑的文件。
更新 更改您的工作副本,即您当前正在编辑的文件到您选择的任何版本。
如果你只是 hg update
而没有指定修订版,它将更新到它认为是 repo 的当前提示的任何内容。
如果你这样做 hg update -r c63b5ce2119a
它会将你的工作副本更新到指定的修订版,这将更改你当前正在编辑的文件。